@@ -56,7 +56,6 @@ Symfony Standard Edition:
56
56
# and have a tag that allows actions to type-hint services
57
57
AppBundle\Controller\ :
58
58
resource : ' ../../src/AppBundle/Controller'
59
- public : true
60
59
tags : ['controller.service_arguments']
61
60
62
61
# add more services, or override services that need manual wiring
@@ -78,7 +77,7 @@ Symfony Standard Edition:
78
77
79
78
<prototype namespace =" AppBundle\" resource =" ../../src/AppBundle/*" exclude =" ../../src/AppBundle/{Entity,Repository}" />
80
79
81
- <prototype namespace =" AppBundle\Controller\" resource =" ../../src/AppBundle/Controller" public = " true " >
80
+ <prototype namespace =" AppBundle\Controller\" resource =" ../../src/AppBundle/Controller" >
82
81
<tag name =" controller.service_arguments" />
83
82
</prototype >
84
83
@@ -104,7 +103,6 @@ Symfony Standard Edition:
104
103
105
104
// Changes default config
106
105
$definition
107
- ->setPublic(true)
108
106
->addTag('controller.service_arguments')
109
107
;
110
108
@@ -348,7 +346,6 @@ The third big change is that, in a new Symfony 3.3 project, your controllers are
348
346
# and have a tag that allows actions to type-hint services
349
347
AppBundle\Controller\ :
350
348
resource : ' ../../src/AppBundle/Controller'
351
- public : true
352
349
tags : ['controller.service_arguments']
353
350
354
351
.. code-block :: xml
@@ -363,7 +360,7 @@ The third big change is that, in a new Symfony 3.3 project, your controllers are
363
360
<services >
364
361
<!-- ... -->
365
362
366
- <prototype namespace =" AppBundle\Controller\" resource =" ../../src/AppBundle/Controller" public = " true " >
363
+ <prototype namespace =" AppBundle\Controller\" resource =" ../../src/AppBundle/Controller" >
367
364
<tag name =" controller.service_arguments" />
368
365
</prototype >
369
366
</services >
@@ -375,9 +372,6 @@ The third big change is that, in a new Symfony 3.3 project, your controllers are
375
372
376
373
// ...
377
374
378
- // override default template
379
- $definition->setPublic(true);
380
-
381
375
$this->registerClasses($definition, 'AppBundle\\Controller\\', '../../src/AppBundle/Controller/*');
382
376
383
377
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/``
676
670
+
677
671
+ AppBundle\Controller\:
678
672
+ resource: '../../src/AppBundle/Controller'
679
- + public: true
680
673
+ tags: ['controller.service_arguments']
681
674
682
675
# ...
@@ -766,7 +759,6 @@ can be autowired. The final configuration looks like this:
766
759
767
760
AppBundle\Controller\ :
768
761
resource : ' ../../src/AppBundle/Controller'
769
- public : true
770
762
tags : ['controller.service_arguments']
771
763
772
764
AppBundle\Service\GitHubNotifier :
0 commit comments