Skip to content

Commit 4ab96f6

Browse files
authored
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.
1 parent d591900 commit 4ab96f6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

service_container/3.3-di-changes.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,8 @@ The third big change is that, in a new Symfony 3.3 project, your controllers are
373373
// app/config/services.php
374374
375375
// ...
376-
376+
377+
$definition->addTag('controller.service_arguments');
377378
$this->registerClasses($definition, 'AppBundle\\Controller\\', '../../src/AppBundle/Controller/*');
378379
379380
But, you might not even notice this. First, your controllers *can* still extend

0 commit comments

Comments
 (0)