Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.3k
Closed
Description
One of the (imo) foremost advantages of controller as a service, is thefail fast principle. This means that if you're missing service definitions or try to inject something that does not exist, it will throw an error during compilation. When using the (Base)Controller provided by Symfony, you won't find out if the service exist until you callget() run-time, which might happen once in a blue moon. It also makes it impossible to useprivate services in 4.0.
http://symfony.com/doc/current/cookbook/controller/service.html