Skip to content

Commit 716ce42

Browse files
committed
feature #65 Tweak configuration for app.yaml (fabpot)
This PR was merged into the master branch. Discussion ---------- Tweak configuration for app.yaml symfony/symfony-standard#1070 Commits ------- 7581f44 tweaked configuration for app.yaml
2 parents 11bd171 + 7581f44 commit 716ce42

File tree

1 file changed

+8
-3
lines changed
  • symfony/framework-bundle/3.3/etc/packages

1 file changed

+8
-3
lines changed

symfony/framework-bundle/3.3/etc/packages/app.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,22 @@ services:
33
_defaults:
44
# automatically injects dependencies in your services
55
autowire: true
6-
# automatically registers your services as commands, form types, etc.
6+
# automatically registers your services as commands, event subscribers, etc.
77
autoconfigure: true
88
# this means you cannot fetch services directly from the container via $container->get()
99
# if you need to do this, you can override this setting on individual services
1010
public: false
1111

12-
# loads services from whatever directories you want (you can add directories!)
12+
# makes classes in src/ available to be used as services
1313
# this creates a service per class whose id is the fully-qualified class name
1414
App\:
15-
resource: '../../src/{Command,Form,EventSubscriber,Twig,Security}'
15+
resource: '../../src/*'
16+
# you can exclude directories or files
17+
# but if a service is unused, it's removed anyway
18+
exclude: '../../src/{Entity,Repository}'
1619

20+
# controllers are imported separately to make sure they're public
21+
# and have a tag that allows actions to type-hint services
1722
App\Controller\:
1823
resource: '../../src/Controller'
1924
public: true

0 commit comments

Comments
 (0)