Composer: Scripts

“Hook me up
I’m reaching out for you, come on
Hook me up
I know you can do it, come on, take me on” – Bon Jovi

We all use composer to manage libraries for our apps. Usually we build composer.json file, install dependencies and eventually update them later. These are common and repetitive tasks but composer of course has much more to offer.

Continue reading “Composer: Scripts”

Constructors signature and LSP

“Objects in a program should be replaceable with instances of their subtypes without altering the correctness of that program.” – Barbara Liskov

From time to time we all encounter oddity of the language that we use and the feeling of strangeness of course is simply caused by some gaps in our knowledge. When I was building some CLI commands for my Magento’s module I found that I must extend Symfony’s Command class. Nihil novi sub sole, however I also wanted to inject my custom ThemeInstaller class to delegate some responsibilities. Then I realized that I will not be able to do that…

Continue reading “Constructors signature and LSP”