217

How to use Repository with Doctrine as Service in Symfony | Tomas Votruba

 6 years ago
source link: https://www.tomasvotruba.cz/blog/2017/10/16/how-to-use-repository-with-doctrine-as-service-in-symfony/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Dependency injection with autowiring is super easy since Symfony 3.3. Yet on my mentoring I still meet service locators.Mostly due to traditional registration of Doctrine repositories.The way out from service locators to repository as service was described by many before and now we put it into Symfony 3.3 context.

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK