You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor #8986 Removed invalid examples (TheDevilOnLine, Tom Maaswinkel, javiereguiluz)
This PR was merged into the 4.0 branch.
Discussion
----------
Removed invalid examples
Templating isn't a service in Symfony 4+ (even after `composer req templating`), so probably we're looking for the twig service.
The Router service isn't public and can therefor not be called from the container:
```
$ php bin/console debug:container router
// This service is an alias for the service router.default
Information for Service "router.default"
========================================
---------------- -----------------------------------------------
Option Value
---------------- -----------------------------------------------
Service ID router.default
Class Symfony\Bundle\FrameworkBundle\Routing\Router
Tags -
Calls setConfigCacheFactory
Public no
Synthetic no
Lazy no
Shared yes
Abstract no
Autowired no
Autoconfigured no
---------------- -----------------------------------------------
```
Commits
-------
3492028 Use controller method injection instead of the constructor
f9091b0 Updated documentation to reflect best practice of using Dependency Injection over Container. Includes changes from PR #898518e6d9e Removed "Accessing the Container Directly"
89e38ef Removed invalid examples
0 commit comments