Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

Commit 0b5a14b

Browse filesBrowse 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
Copy full SHA for 0b5a14b

File tree

Expand file treeCollapse file tree

1 file changed

+19
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+19
-3
lines changed

‎app/config/services.yml

Copy file name to clipboardExpand all lines: app/config/services.yml
+19-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.