From 4ab96f6ce7a517cf866a7f22aad5f6550d280c2a Mon Sep 17 00:00:00 2001 From: Joe Mizzi Date: Thu, 30 Nov 2017 20:39:37 -0600 Subject: [PATCH] Show controller tag for PHP configuration Putting the tag in the PHP documentation is necessary so that controllers are marked as public to avoid a deprecation notice and also to wire them up the same way as controllers configured via xml or yml would be. --- service_container/3.3-di-changes.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/service_container/3.3-di-changes.rst b/service_container/3.3-di-changes.rst index 2ba6a67156f..678aab69364 100644 --- a/service_container/3.3-di-changes.rst +++ b/service_container/3.3-di-changes.rst @@ -373,7 +373,8 @@ The third big change is that, in a new Symfony 3.3 project, your controllers are // app/config/services.php // ... - + + $definition->addTag('controller.service_arguments'); $this->registerClasses($definition, 'AppBundle\\Controller\\', '../../src/AppBundle/Controller/*'); But, you might not even notice this. First, your controllers *can* still extend