diff --git a/service_container/3.3-di-changes.rst b/service_container/3.3-di-changes.rst index 90b64ea3cbd..b4408680c4b 100644 --- a/service_container/3.3-di-changes.rst +++ b/service_container/3.3-di-changes.rst @@ -56,7 +56,6 @@ Symfony Standard Edition: # and have a tag that allows actions to type-hint services AppBundle\Controller\: resource: '../../src/AppBundle/Controller' - public: true tags: ['controller.service_arguments'] # add more services, or override services that need manual wiring @@ -78,7 +77,7 @@ Symfony Standard Edition: - + @@ -104,7 +103,6 @@ Symfony Standard Edition: // Changes default config $definition - ->setPublic(true) ->addTag('controller.service_arguments') ; @@ -348,7 +346,6 @@ The third big change is that, in a new Symfony 3.3 project, your controllers are # and have a tag that allows actions to type-hint services AppBundle\Controller\: resource: '../../src/AppBundle/Controller' - public: true tags: ['controller.service_arguments'] .. code-block:: xml @@ -363,7 +360,7 @@ The third big change is that, in a new Symfony 3.3 project, your controllers are - + @@ -375,9 +372,6 @@ The third big change is that, in a new Symfony 3.3 project, your controllers are // ... - // override default template - $definition->setPublic(true); - $this->registerClasses($definition, 'AppBundle\\Controller\\', '../../src/AppBundle/Controller/*'); But, you might not even notice this. First, your controllers *can* still extend @@ -676,7 +670,6 @@ You're now ready to automatically register all services in ``src/AppBundle/`` + + AppBundle\Controller\: + resource: '../../src/AppBundle/Controller' - + public: true + tags: ['controller.service_arguments'] # ... @@ -766,7 +759,6 @@ can be autowired. The final configuration looks like this: AppBundle\Controller\: resource: '../../src/AppBundle/Controller' - public: true tags: ['controller.service_arguments'] AppBundle\Service\GitHubNotifier: