11# Learn more about services, parameters and containers at
22# https://symfony.com/doc/current/service_container.html
33parameters :
4- # parameter_name: value
4+ # parameter_name: value
55
66services :
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, event subscribers, 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- # makes classes in src/AppBundle available to be used as services
18- # this creates a service per class whose id is the fully-qualified class name
19- AppBundle\ :
20- resource : ' ../../src/AppBundle/*'
21- # you can exclude directories or files
22- # but if a service is unused, it's removed anyway
23- exclude : ' ../../src/AppBundle/{Entity,Repository,Tests}'
24-
25- # controllers are imported separately to make sure they're public
26- # and have a tag that allows actions to type-hint services
27- AppBundle\Controller\ :
28- resource : ' ../../src/AppBundle/Controller'
29- public : true
30- tags : ['controller.service_arguments']
31-
32- jms_serializer.naming_strategy :
33- alias : jms_serializer.identical_property_naming_strategy
34-
35- # add more services, or override services that need manual wiring
36- # AppBundle\Service\ExampleService:
37- # arguments:
38- # $someArgument: 'some_value'
39-
40- AppBundle\Worker\ :
41- resource : ' ../../src/AppBundle/Worker'
42- public : true
43- tags :
44- - {name: "dtc_queue.worker"}
45-
46-
47- AppBundle\Service\LxdApi\ :
48- resource : ' ../../src/AppBundle/Service/LxdApi'
49- arguments :
50- $cert_location : ' %cert_location%'
51- $cert_key_location : ' %cert_key_location%'
52- $cert_passphrase : ' %cert_passphrase%'
53-
54-
55- AppBundle\Service\SSH\ :
56- resource : ' ../../src/AppBundle/Service/SSH'
57- arguments :
58- $ssh_location : ' %ssh_location%'
59- $ssh_key_location : ' %ssh_key_location%'
60- $ssh_user : ' %ssh_user%'
61- $ssh_passphrase : ' %ssh_passphrase%'
62-
63- AppBundle\Service\Restore\ :
64- resource : ' ../../src/AppBundle/Service/Restore'
65- arguments :
66- $ssh_location : ' %ssh_location%'
67- $ssh_key_location : ' %ssh_key_location%'
68- $ssh_user : ' %ssh_user%'
69- $ssh_passphrase : ' %ssh_passphrase%'
70-
71- AppBundle\Service\Backup\ :
72- resource : ' ../../src/AppBundle/Service/Backup'
73- arguments :
74- $ssh_location : ' %ssh_location%'
75- $ssh_key_location : ' %ssh_key_location%'
76- $ssh_user : ' %ssh_user%'
77- $ssh_passphrase : ' %ssh_passphrase%'
78-
79- AppBundle\Service\Profile\ :
80- resource : ' ../../src/AppBundle/Service/Profile'
81- public : true
82- arguments : [ "@doctrine.orm.entity_manager" ]
83-
84- AppBundle\Service\Nagios\ :
85- resource : ' ../../src/AppBundle/Service/Nagios'
86- arguments :
87- $nagiosUsername : ' %nagiosUsername%'
88- $nagiosPassword : ' %nagiosPassword%'
89-
90-
91- platform.user.manager :
92- class : Doctrine\ORM\EntityManager
93- factory : ['@doctrine','getManagerForClass']
94- arguments : ['AppBundle\Entity\User']
95- platform.user.repository :
96- class : AppBundle\Repository\UserRepository
97- factory : ['@platform.user.manager','getRepository']
98- arguments : ['AppBundle\Entity\User']
99- platform.user.provider :
100- class : AppBundle\Provider\UserProvider
101- arguments : ['@platform.user.repository']
102-
103- httpful_connection_exception.listener :
104- class : AppBundle\EventListener\HttpfulConnectionExceptionListener
105- tags :
106- - { name: kernel.event_listener, event: kernel.exception, method: onKernelException }
107-
108- element_not_found_exception.listener :
109- class : AppBundle\EventListener\ElementNotFoundExceptionListener
110- tags :
111- - { name: kernel.event_listener, event: kernel.exception, method: onKernelException }
112-
113- wrong_input_exception.listener :
114- class : AppBundle\EventListener\WrongInputExceptionListener
115- tags :
116- - { name: kernel.event_listener, event: kernel.exception, method: onKernelException }
117- wrong_input_array_exception.listener :
118- class : AppBundle\EventListener\WrongInputExceptionArrayListener
119- tags :
120- - { name: kernel.event_listener, event: kernel.exception, method: onKernelException }
121-
122- forbidden_exception.listener :
123- class : AppBundle\EventListener\ForbiddenExceptionListener
124- tags :
125- - { name: kernel.event_listener, event: kernel.exception, method: onKernelException }
126-
127- runtime_exception.listener :
128- class : AppBundle\EventListener\RuntimeExceptionListener
129- tags :
130- - { name: kernel.event_listener, event: kernel.exception, method: onKernelException }
131-
132-
133- Doctrine\ORM\EntityRepository :
134- alias : platform.user.repository
135-
136- dtc_grid.command.source.list :
137- class : Dtc\GridBundle\Command\SourceListCommand
138- tags :
139- - { name: 'console.command' }
140- dtc_grid.command.source.generate :
141- class : Dtc\GridBundle\Command\GenerateGridSourceCommand
142- tags :
143- - { name: 'console.command' }
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, event subscribers, 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+ # makes classes in src/AppBundle available to be used as services
18+ # this creates a service per class whose id is the fully-qualified class name
19+ AppBundle\ :
20+ resource : " ../../src/AppBundle/*"
21+ # you can exclude directories or files
22+ # but if a service is unused, it's removed anyway
23+ exclude : " ../../src/AppBundle/{Entity,Repository,Tests}"
24+
25+ # controllers are imported separately to make sure they're public
26+ # and have a tag that allows actions to type-hint services
27+ AppBundle\Controller\ :
28+ resource : " ../../src/AppBundle/Controller"
29+ public : true
30+ tags : ["controller.service_arguments"]
31+
32+ jms_serializer.naming_strategy :
33+ alias : jms_serializer.identical_property_naming_strategy
34+
35+ # add more services, or override services that need manual wiring
36+ # AppBundle\Service\ExampleService:
37+ # arguments:
38+ # $someArgument: 'some_value'
39+
40+ AppBundle\Worker\ :
41+ resource : " ../../src/AppBundle/Worker"
42+ public : true
43+ tags :
44+ - { name: "dtc_queue.worker" }
45+
46+ AppBundle\Service\LxdApi\ :
47+ resource : " ../../src/AppBundle/Service/LxdApi"
48+ arguments :
49+ $cert_location : " %cert_location%"
50+ $cert_key_location : " %cert_key_location%"
51+ $cert_passphrase : " %cert_passphrase%"
52+
53+ AppBundle\Service\SSH\ :
54+ resource : " ../../src/AppBundle/Service/SSH"
55+ arguments :
56+ $ssh_location : " %ssh_location%"
57+ $ssh_key_location : " %ssh_key_location%"
58+ $ssh_user : " %ssh_user%"
59+ $ssh_passphrase : " %ssh_passphrase%"
60+
61+ AppBundle\Service\Restore\ :
62+ resource : " ../../src/AppBundle/Service/Restore"
63+ arguments :
64+ $ssh_location : " %ssh_location%"
65+ $ssh_key_location : " %ssh_key_location%"
66+ $ssh_user : " %ssh_user%"
67+ $ssh_passphrase : " %ssh_passphrase%"
68+
69+ AppBundle\Service\Backup\ :
70+ resource : " ../../src/AppBundle/Service/Backup"
71+ arguments :
72+ $ssh_location : " %ssh_location%"
73+ $ssh_key_location : " %ssh_key_location%"
74+ $ssh_user : " %ssh_user%"
75+ $ssh_passphrase : " %ssh_passphrase%"
76+
77+ AppBundle\Service\Profile\ :
78+ resource : " ../../src/AppBundle/Service/Profile"
79+ public : true
80+ arguments : ["@doctrine.orm.entity_manager"]
81+
82+ AppBundle\Service\Nagios\ :
83+ resource : " ../../src/AppBundle/Service/Nagios"
84+ arguments :
85+ $nagiosUsername : " %nagiosUsername%"
86+ $nagiosPassword : " %nagiosPassword%"
87+
88+ platform.user.manager :
89+ class : Doctrine\ORM\EntityManager
90+ factory : ["@doctrine", "getManagerForClass"]
91+ arguments : ['AppBundle\Entity\User']
92+ platform.user.repository :
93+ class : AppBundle\Repository\UserRepository
94+ factory : ["@platform.user.manager", "getRepository"]
95+ arguments : ['AppBundle\Entity\User']
96+ platform.user.provider :
97+ class : AppBundle\Provider\UserProvider
98+ arguments : ["@platform.user.repository"]
99+
100+ AppBundle\EventListener\ :
101+ resource : " ../../src/AppBundle/EventListener"
102+ tags :
103+ - {
104+ name : kernel.event_listener,
105+ event : kernel.exception,
106+ method : onKernelException,
107+ }
108+
109+ Doctrine\ORM\EntityRepository :
110+ alias : platform.user.repository
111+
112+ dtc_grid.command.source.list :
113+ class : Dtc\GridBundle\Command\SourceListCommand
114+ tags :
115+ - { name: "console.command" }
116+ dtc_grid.command.source.generate :
117+ class : Dtc\GridBundle\Command\GenerateGridSourceCommand
118+ tags :
119+ - { name: "console.command" }
0 commit comments