Hello Guys,
I need to study Design Pattern Solid and Singleton. Anyone has any useful tutorials? Prefer with PHP (Symfony or Laravel).
Thanks.
Only Series on Design Patterns which has more examples less Jargon, laracasts.com/series/design-patterns-in-php
Laracasts has a serie on SOLID, but it's not a pattern but more principles, right?
In Laravel I never had the need to use Singleton
Also watch this from @AdamWathan why not to care about patterns in general https://www.youtube.com/watch?v=5DVDewOReoY
I know laracasts had a series on nothing but design patterns.
Yes i use Dependency Injection in Symfony and Service Container in Laravel.but in interview they required others design pattern like solid so i need to have a look.
Adrien N.
If you're into Symfony/Laravel, you might want to look at the "Dependency Injection" pattern instead of the Singleton pattern. Fabien Potencier is doing a great job at explaining Dependency Injection on his blog. Another reading on Service Container vs Service Locator somewhat related in the accepted answer has greatly improve the separation of concerns of my PHP code.
Looking at both Observer pattern and Event Dispatcher pattern (here for theory, here for theory + Symfony) has been a great help building smart - well organized code for me.