Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

Commit 0b5a14b

Browse files
committed
feature #1064 Use symfony 3.3 features (GuilhemN)
This PR was merged into the 3.3-dev branch. Discussion ---------- Use symfony 3.3 features With [Flex coming](https://github.com/symfony/recipes/blob/master/symfony/framework-bundle/3.3/etc/packages/app.yaml) and [the refactoring of the docs](symfony/symfony-docs#7807), I think we should push sf 3.3 di features and also begin to accustom people to sf 4.0 ideas. ping @weaverryan Commits ------- 7382e42 Use symfony 3.3 features
2 parents d91e642 + 7382e42 commit 0b5a14b

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

app/config/services.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,22 @@ parameters:
44
#parameter_name: value
55

66
services:
7-
#service_name:
8-
# class: AppBundle\Directory\ClassName
9-
# arguments: ['@another_service_name', 'plain_value', '%parameter_name%']
7+
# default configuration for services in *this* file
8+
_defaults:
9+
# automatically injects dependencies in your services
10+
autowire: true
11+
# automatically registers your services as commands, form types, etc.
12+
autoconfigure: true
13+
# this means you cannot fetch services directly from the container via $container->get()
14+
# if you need to do this, you can override this setting on individual services
15+
public: false
16+
17+
# loads services from whatever directories you want (you can add directories!)
18+
# this creates a service per class whose id is the fully-qualified class name
19+
AppBundle\:
20+
resource: '../../src/AppBundle/{Command,Form,EventSubscriber,Twig,Security}'
21+
22+
AppBundle\Controller\:
23+
resource: '../../src/AppBundle/Controller'
24+
public: true
25+
tags: ['controller.service_arguments']

0 commit comments

Comments
 (0)