Try to avoid using new Class() instead of this, try to manage your dependencies using Symfony dependency injection component. Using this approach you'll write less code, will be more reusable and also legible. I'll add some interesting links below soon
Try to avoid using
new Class()instead of this, try to manage your dependencies using Symfony dependency injection component. Using this approach you'll write less code, will be more reusable and also legible. I'll add some interesting links below soon