|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
use Symfony\Component\DependencyInjection\ContainerInterface; |
|
4
|
|
|
use Symfony\Component\DependencyInjection\Container; |
|
5
|
|
|
use Symfony\Component\DependencyInjection\Exception\InactiveScopeException; |
|
6
|
|
|
use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException; |
|
|
|
|
|
|
7
|
|
|
use Symfony\Component\DependencyInjection\Exception\LogicException; |
|
|
|
|
|
|
8
|
|
|
use Symfony\Component\DependencyInjection\Exception\RuntimeException; |
|
|
|
|
|
|
9
|
|
|
use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag; |
|
10
|
|
|
|
|
11
|
|
|
/** |
|
12
|
|
|
* AppTestDebugProjectContainer. |
|
13
|
|
|
* |
|
14
|
|
|
* This class has been auto-generated |
|
15
|
|
|
* by the Symfony Dependency Injection Component. |
|
16
|
|
|
*/ |
|
17
|
|
|
class AppTestDebugProjectContainer extends Container |
|
|
|
|
|
|
18
|
|
|
{ |
|
19
|
|
|
private $parameters; |
|
20
|
|
|
private $targetDirs = array(); |
|
21
|
|
|
|
|
22
|
|
|
/** |
|
23
|
|
|
* Constructor. |
|
24
|
|
|
*/ |
|
25
|
|
|
public function __construct() |
|
26
|
|
|
{ |
|
27
|
|
|
$dir = __DIR__; |
|
28
|
|
|
for ($i = 1; $i <= 5; ++$i) { |
|
29
|
|
|
$this->targetDirs[$i] = $dir = dirname($dir); |
|
30
|
|
|
} |
|
31
|
|
|
$this->parameters = $this->getDefaultParameters(); |
|
32
|
|
|
|
|
33
|
|
|
$this->services = |
|
34
|
|
|
$this->scopedServices = |
|
35
|
|
|
$this->scopeStacks = array(); |
|
36
|
|
|
$this->scopes = array('request' => 'container'); |
|
37
|
|
|
$this->scopeChildren = array('request' => array()); |
|
38
|
|
|
$this->methodMap = array( |
|
39
|
|
|
'annotation_reader' => 'getAnnotationReaderService', |
|
40
|
|
|
'assets.context' => 'getAssets_ContextService', |
|
41
|
|
|
'assets.packages' => 'getAssets_PackagesService', |
|
42
|
|
|
'cache_clearer' => 'getCacheClearerService', |
|
43
|
|
|
'cache_warmer' => 'getCacheWarmerService', |
|
44
|
|
|
'config_cache_factory' => 'getConfigCacheFactoryService', |
|
45
|
|
|
'controller_name_converter' => 'getControllerNameConverterService', |
|
46
|
|
|
'debug.controller_resolver' => 'getDebug_ControllerResolverService', |
|
47
|
|
|
'debug.debug_handlers_listener' => 'getDebug_DebugHandlersListenerService', |
|
48
|
|
|
'debug.event_dispatcher' => 'getDebug_EventDispatcherService', |
|
49
|
|
|
'debug.stopwatch' => 'getDebug_StopwatchService', |
|
50
|
|
|
'file_locator' => 'getFileLocatorService', |
|
51
|
|
|
'filesystem' => 'getFilesystemService', |
|
52
|
|
|
'form.csrf_provider' => 'getForm_CsrfProviderService', |
|
53
|
|
|
'form.factory' => 'getForm_FactoryService', |
|
54
|
|
|
'form.registry' => 'getForm_RegistryService', |
|
55
|
|
|
'form.resolved_type_factory' => 'getForm_ResolvedTypeFactoryService', |
|
56
|
|
|
'form.type.birthday' => 'getForm_Type_BirthdayService', |
|
57
|
|
|
'form.type.button' => 'getForm_Type_ButtonService', |
|
58
|
|
|
'form.type.checkbox' => 'getForm_Type_CheckboxService', |
|
59
|
|
|
'form.type.choice' => 'getForm_Type_ChoiceService', |
|
60
|
|
|
'form.type.collection' => 'getForm_Type_CollectionService', |
|
61
|
|
|
'form.type.country' => 'getForm_Type_CountryService', |
|
62
|
|
|
'form.type.currency' => 'getForm_Type_CurrencyService', |
|
63
|
|
|
'form.type.date' => 'getForm_Type_DateService', |
|
64
|
|
|
'form.type.datetime' => 'getForm_Type_DatetimeService', |
|
65
|
|
|
'form.type.email' => 'getForm_Type_EmailService', |
|
66
|
|
|
'form.type.file' => 'getForm_Type_FileService', |
|
67
|
|
|
'form.type.form' => 'getForm_Type_FormService', |
|
68
|
|
|
'form.type.hidden' => 'getForm_Type_HiddenService', |
|
69
|
|
|
'form.type.integer' => 'getForm_Type_IntegerService', |
|
70
|
|
|
'form.type.language' => 'getForm_Type_LanguageService', |
|
71
|
|
|
'form.type.locale' => 'getForm_Type_LocaleService', |
|
72
|
|
|
'form.type.money' => 'getForm_Type_MoneyService', |
|
73
|
|
|
'form.type.number' => 'getForm_Type_NumberService', |
|
74
|
|
|
'form.type.password' => 'getForm_Type_PasswordService', |
|
75
|
|
|
'form.type.percent' => 'getForm_Type_PercentService', |
|
76
|
|
|
'form.type.radio' => 'getForm_Type_RadioService', |
|
77
|
|
|
'form.type.range' => 'getForm_Type_RangeService', |
|
78
|
|
|
'form.type.repeated' => 'getForm_Type_RepeatedService', |
|
79
|
|
|
'form.type.reset' => 'getForm_Type_ResetService', |
|
80
|
|
|
'form.type.search' => 'getForm_Type_SearchService', |
|
81
|
|
|
'form.type.submit' => 'getForm_Type_SubmitService', |
|
82
|
|
|
'form.type.text' => 'getForm_Type_TextService', |
|
83
|
|
|
'form.type.textarea' => 'getForm_Type_TextareaService', |
|
84
|
|
|
'form.type.time' => 'getForm_Type_TimeService', |
|
85
|
|
|
'form.type.timezone' => 'getForm_Type_TimezoneService', |
|
86
|
|
|
'form.type.url' => 'getForm_Type_UrlService', |
|
87
|
|
|
'form.type_extension.csrf' => 'getForm_TypeExtension_CsrfService', |
|
88
|
|
|
'form.type_extension.form.http_foundation' => 'getForm_TypeExtension_Form_HttpFoundationService', |
|
89
|
|
|
'form.type_extension.form.validator' => 'getForm_TypeExtension_Form_ValidatorService', |
|
90
|
|
|
'form.type_extension.repeated.validator' => 'getForm_TypeExtension_Repeated_ValidatorService', |
|
91
|
|
|
'form.type_extension.submit.validator' => 'getForm_TypeExtension_Submit_ValidatorService', |
|
92
|
|
|
'form.type_guesser.validator' => 'getForm_TypeGuesser_ValidatorService', |
|
93
|
|
|
'fragment.handler' => 'getFragment_HandlerService', |
|
94
|
|
|
'fragment.renderer.esi' => 'getFragment_Renderer_EsiService', |
|
95
|
|
|
'fragment.renderer.hinclude' => 'getFragment_Renderer_HincludeService', |
|
96
|
|
|
'fragment.renderer.inline' => 'getFragment_Renderer_InlineService', |
|
97
|
|
|
'fragment.renderer.ssi' => 'getFragment_Renderer_SsiService', |
|
98
|
|
|
'http_kernel' => 'getHttpKernelService', |
|
99
|
|
|
'itkg_translation.command.translation' => 'getItkgTranslation_Command_TranslationService', |
|
100
|
|
|
'itkg_translation.finder' => 'getItkgTranslation_FinderService', |
|
101
|
|
|
'kernel' => 'getKernelService', |
|
102
|
|
|
'kernel.class_cache.cache_warmer' => 'getKernel_ClassCache_CacheWarmerService', |
|
103
|
|
|
'locale_listener' => 'getLocaleListenerService', |
|
104
|
|
|
'logger' => 'getLoggerService', |
|
105
|
|
|
'monolog.handler.main' => 'getMonolog_Handler_MainService', |
|
106
|
|
|
'monolog.handler.nested' => 'getMonolog_Handler_NestedService', |
|
107
|
|
|
'monolog.logger.event' => 'getMonolog_Logger_EventService', |
|
108
|
|
|
'monolog.logger.php' => 'getMonolog_Logger_PhpService', |
|
109
|
|
|
'monolog.logger.request' => 'getMonolog_Logger_RequestService', |
|
110
|
|
|
'monolog.logger.router' => 'getMonolog_Logger_RouterService', |
|
111
|
|
|
'monolog.logger.templating' => 'getMonolog_Logger_TemplatingService', |
|
112
|
|
|
'monolog.logger.translation' => 'getMonolog_Logger_TranslationService', |
|
113
|
|
|
'property_accessor' => 'getPropertyAccessorService', |
|
114
|
|
|
'request' => 'getRequestService', |
|
115
|
|
|
'request_stack' => 'getRequestStackService', |
|
116
|
|
|
'response_listener' => 'getResponseListenerService', |
|
117
|
|
|
'router' => 'getRouterService', |
|
118
|
|
|
'router.request_context' => 'getRouter_RequestContextService', |
|
119
|
|
|
'router_listener' => 'getRouterListenerService', |
|
120
|
|
|
'routing.loader' => 'getRouting_LoaderService', |
|
121
|
|
|
'security.csrf.token_manager' => 'getSecurity_Csrf_TokenManagerService', |
|
122
|
|
|
'security.secure_random' => 'getSecurity_SecureRandomService', |
|
123
|
|
|
'service_container' => 'getServiceContainerService', |
|
124
|
|
|
'session' => 'getSessionService', |
|
125
|
|
|
'session.handler' => 'getSession_HandlerService', |
|
126
|
|
|
'session.save_listener' => 'getSession_SaveListenerService', |
|
127
|
|
|
'session.storage.filesystem' => 'getSession_Storage_FilesystemService', |
|
128
|
|
|
'session.storage.metadata_bag' => 'getSession_Storage_MetadataBagService', |
|
129
|
|
|
'session.storage.native' => 'getSession_Storage_NativeService', |
|
130
|
|
|
'session.storage.php_bridge' => 'getSession_Storage_PhpBridgeService', |
|
131
|
|
|
'session_listener' => 'getSessionListenerService', |
|
132
|
|
|
'streamed_response_listener' => 'getStreamedResponseListenerService', |
|
133
|
|
|
'templating' => 'getTemplatingService', |
|
134
|
|
|
'templating.filename_parser' => 'getTemplating_FilenameParserService', |
|
135
|
|
|
'templating.helper.assets' => 'getTemplating_Helper_AssetsService', |
|
136
|
|
|
'templating.helper.router' => 'getTemplating_Helper_RouterService', |
|
137
|
|
|
'templating.loader' => 'getTemplating_LoaderService', |
|
138
|
|
|
'templating.locator' => 'getTemplating_LocatorService', |
|
139
|
|
|
'templating.name_parser' => 'getTemplating_NameParserService', |
|
140
|
|
|
'test.client' => 'getTest_ClientService', |
|
141
|
|
|
'test.client.cookiejar' => 'getTest_Client_CookiejarService', |
|
142
|
|
|
'test.client.history' => 'getTest_Client_HistoryService', |
|
143
|
|
|
'test.session.listener' => 'getTest_Session_ListenerService', |
|
144
|
|
|
'translation.dumper.csv' => 'getTranslation_Dumper_CsvService', |
|
145
|
|
|
'translation.dumper.ini' => 'getTranslation_Dumper_IniService', |
|
146
|
|
|
'translation.dumper.json' => 'getTranslation_Dumper_JsonService', |
|
147
|
|
|
'translation.dumper.mo' => 'getTranslation_Dumper_MoService', |
|
148
|
|
|
'translation.dumper.php' => 'getTranslation_Dumper_PhpService', |
|
149
|
|
|
'translation.dumper.po' => 'getTranslation_Dumper_PoService', |
|
150
|
|
|
'translation.dumper.qt' => 'getTranslation_Dumper_QtService', |
|
151
|
|
|
'translation.dumper.res' => 'getTranslation_Dumper_ResService', |
|
152
|
|
|
'translation.dumper.xliff' => 'getTranslation_Dumper_XliffService', |
|
153
|
|
|
'translation.dumper.yml' => 'getTranslation_Dumper_YmlService', |
|
154
|
|
|
'translation.extractor' => 'getTranslation_ExtractorService', |
|
155
|
|
|
'translation.extractor.php' => 'getTranslation_Extractor_PhpService', |
|
156
|
|
|
'translation.loader' => 'getTranslation_LoaderService', |
|
157
|
|
|
'translation.loader.csv' => 'getTranslation_Loader_CsvService', |
|
158
|
|
|
'translation.loader.dat' => 'getTranslation_Loader_DatService', |
|
159
|
|
|
'translation.loader.ini' => 'getTranslation_Loader_IniService', |
|
160
|
|
|
'translation.loader.json' => 'getTranslation_Loader_JsonService', |
|
161
|
|
|
'translation.loader.mo' => 'getTranslation_Loader_MoService', |
|
162
|
|
|
'translation.loader.php' => 'getTranslation_Loader_PhpService', |
|
163
|
|
|
'translation.loader.po' => 'getTranslation_Loader_PoService', |
|
164
|
|
|
'translation.loader.qt' => 'getTranslation_Loader_QtService', |
|
165
|
|
|
'translation.loader.res' => 'getTranslation_Loader_ResService', |
|
166
|
|
|
'translation.loader.xliff' => 'getTranslation_Loader_XliffService', |
|
167
|
|
|
'translation.loader.yml' => 'getTranslation_Loader_YmlService', |
|
168
|
|
|
'translation.writer' => 'getTranslation_WriterService', |
|
169
|
|
|
'translator' => 'getTranslatorService', |
|
170
|
|
|
'translator.default' => 'getTranslator_DefaultService', |
|
171
|
|
|
'translator.selector' => 'getTranslator_SelectorService', |
|
172
|
|
|
'translator_listener' => 'getTranslatorListenerService', |
|
173
|
|
|
'twig' => 'getTwigService', |
|
174
|
|
|
'twig.controller.exception' => 'getTwig_Controller_ExceptionService', |
|
175
|
|
|
'twig.controller.preview_error' => 'getTwig_Controller_PreviewErrorService', |
|
176
|
|
|
'twig.exception_listener' => 'getTwig_ExceptionListenerService', |
|
177
|
|
|
'twig.loader' => 'getTwig_LoaderService', |
|
178
|
|
|
'twig.profile' => 'getTwig_ProfileService', |
|
179
|
|
|
'twig.translation.extractor' => 'getTwig_Translation_ExtractorService', |
|
180
|
|
|
'uri_signer' => 'getUriSignerService', |
|
181
|
|
|
'validator' => 'getValidatorService', |
|
182
|
|
|
'validator.builder' => 'getValidator_BuilderService', |
|
183
|
|
|
'validator.email' => 'getValidator_EmailService', |
|
184
|
|
|
'validator.expression' => 'getValidator_ExpressionService', |
|
185
|
|
|
); |
|
186
|
|
|
$this->aliases = array( |
|
187
|
|
|
'console.command.itkg_translationbundle_command_translationconvertercommand' => 'itkg_translation.command.translation', |
|
188
|
|
|
'event_dispatcher' => 'debug.event_dispatcher', |
|
189
|
|
|
'session.storage' => 'session.storage.filesystem', |
|
190
|
|
|
); |
|
191
|
|
|
} |
|
192
|
|
|
|
|
193
|
|
|
/** |
|
194
|
|
|
* {@inheritdoc} |
|
195
|
|
|
*/ |
|
196
|
|
|
public function compile() |
|
197
|
|
|
{ |
|
198
|
|
|
throw new LogicException('You cannot compile a dumped frozen container.'); |
|
199
|
|
|
} |
|
200
|
|
|
|
|
201
|
|
|
/** |
|
202
|
|
|
* Gets the 'annotation_reader' service. |
|
203
|
|
|
* |
|
204
|
|
|
* This service is shared. |
|
205
|
|
|
* This method always returns the same instance of the service. |
|
206
|
|
|
* |
|
207
|
|
|
* @return \Doctrine\Common\Annotations\CachedReader A Doctrine\Common\Annotations\CachedReader instance. |
|
208
|
|
|
*/ |
|
209
|
|
|
protected function getAnnotationReaderService() |
|
210
|
|
|
{ |
|
211
|
|
|
return $this->services['annotation_reader'] = new \Doctrine\Common\Annotations\CachedReader(new \Doctrine\Common\Annotations\AnnotationReader(), new \Doctrine\Common\Cache\FilesystemCache((__DIR__.'/annotations')), true); |
|
212
|
|
|
} |
|
213
|
|
|
|
|
214
|
|
|
/** |
|
215
|
|
|
* Gets the 'assets.context' service. |
|
216
|
|
|
* |
|
217
|
|
|
* This service is shared. |
|
218
|
|
|
* This method always returns the same instance of the service. |
|
219
|
|
|
* |
|
220
|
|
|
* @return \Symfony\Component\Asset\Context\RequestStackContext A Symfony\Component\Asset\Context\RequestStackContext instance. |
|
221
|
|
|
*/ |
|
222
|
|
|
protected function getAssets_ContextService() |
|
223
|
|
|
{ |
|
224
|
|
|
return $this->services['assets.context'] = new \Symfony\Component\Asset\Context\RequestStackContext($this->get('request_stack')); |
|
225
|
|
|
} |
|
226
|
|
|
|
|
227
|
|
|
/** |
|
228
|
|
|
* Gets the 'assets.packages' service. |
|
229
|
|
|
* |
|
230
|
|
|
* This service is shared. |
|
231
|
|
|
* This method always returns the same instance of the service. |
|
232
|
|
|
* |
|
233
|
|
|
* @return \Symfony\Component\Asset\Packages A Symfony\Component\Asset\Packages instance. |
|
234
|
|
|
*/ |
|
235
|
|
|
protected function getAssets_PackagesService() |
|
236
|
|
|
{ |
|
237
|
|
|
return $this->services['assets.packages'] = new \Symfony\Component\Asset\Packages(new \Symfony\Component\Asset\PathPackage('', new \Symfony\Component\Asset\VersionStrategy\EmptyVersionStrategy(), $this->get('assets.context')), array()); |
|
238
|
|
|
} |
|
239
|
|
|
|
|
240
|
|
|
/** |
|
241
|
|
|
* Gets the 'cache_clearer' service. |
|
242
|
|
|
* |
|
243
|
|
|
* This service is shared. |
|
244
|
|
|
* This method always returns the same instance of the service. |
|
245
|
|
|
* |
|
246
|
|
|
* @return \Symfony\Component\HttpKernel\CacheClearer\ChainCacheClearer A Symfony\Component\HttpKernel\CacheClearer\ChainCacheClearer instance. |
|
247
|
|
|
*/ |
|
248
|
|
|
protected function getCacheClearerService() |
|
249
|
|
|
{ |
|
250
|
|
|
return $this->services['cache_clearer'] = new \Symfony\Component\HttpKernel\CacheClearer\ChainCacheClearer(array()); |
|
251
|
|
|
} |
|
252
|
|
|
|
|
253
|
|
|
/** |
|
254
|
|
|
* Gets the 'cache_warmer' service. |
|
255
|
|
|
* |
|
256
|
|
|
* This service is shared. |
|
257
|
|
|
* This method always returns the same instance of the service. |
|
258
|
|
|
* |
|
259
|
|
|
* @return \Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate A Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate instance. |
|
260
|
|
|
*/ |
|
261
|
|
|
protected function getCacheWarmerService() |
|
262
|
|
|
{ |
|
263
|
|
|
$a = $this->get('kernel'); |
|
264
|
|
|
$b = $this->get('templating.filename_parser'); |
|
265
|
|
|
|
|
266
|
|
|
$c = new \Symfony\Bundle\FrameworkBundle\CacheWarmer\TemplateFinder($a, $b, ($this->targetDirs[2].'/Resources')); |
|
267
|
|
|
|
|
268
|
|
|
return $this->services['cache_warmer'] = new \Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate(array(0 => new \Symfony\Bundle\FrameworkBundle\CacheWarmer\TemplatePathsCacheWarmer($c, $this->get('templating.locator')), 1 => $this->get('kernel.class_cache.cache_warmer'), 2 => new \Symfony\Bundle\FrameworkBundle\CacheWarmer\TranslationsCacheWarmer($this->get('translator')), 3 => new \Symfony\Bundle\FrameworkBundle\CacheWarmer\RouterCacheWarmer($this->get('router')), 4 => new \Symfony\Bundle\TwigBundle\CacheWarmer\TemplateCacheCacheWarmer($this, $c, array()), 5 => new \Symfony\Bundle\TwigBundle\CacheWarmer\TemplateCacheWarmer($this->get('twig'), new \Symfony\Bundle\TwigBundle\TemplateIterator($a, $this->targetDirs[2], array())))); |
|
269
|
|
|
} |
|
270
|
|
|
|
|
271
|
|
|
/** |
|
272
|
|
|
* Gets the 'config_cache_factory' service. |
|
273
|
|
|
* |
|
274
|
|
|
* This service is shared. |
|
275
|
|
|
* This method always returns the same instance of the service. |
|
276
|
|
|
* |
|
277
|
|
|
* @return \Symfony\Component\Config\ResourceCheckerConfigCacheFactory A Symfony\Component\Config\ResourceCheckerConfigCacheFactory instance. |
|
278
|
|
|
*/ |
|
279
|
|
|
protected function getConfigCacheFactoryService() |
|
280
|
|
|
{ |
|
281
|
|
|
return $this->services['config_cache_factory'] = new \Symfony\Component\Config\ResourceCheckerConfigCacheFactory(array(0 => new \Symfony\Component\Config\Resource\SelfCheckingResourceChecker(), 1 => new \Symfony\Component\Config\Resource\BCResourceInterfaceChecker())); |
|
|
|
|
|
|
282
|
|
|
} |
|
283
|
|
|
|
|
284
|
|
|
/** |
|
285
|
|
|
* Gets the 'debug.controller_resolver' service. |
|
286
|
|
|
* |
|
287
|
|
|
* This service is shared. |
|
288
|
|
|
* This method always returns the same instance of the service. |
|
289
|
|
|
* |
|
290
|
|
|
* @return \Symfony\Component\HttpKernel\Controller\TraceableControllerResolver A Symfony\Component\HttpKernel\Controller\TraceableControllerResolver instance. |
|
291
|
|
|
*/ |
|
292
|
|
|
protected function getDebug_ControllerResolverService() |
|
293
|
|
|
{ |
|
294
|
|
|
return $this->services['debug.controller_resolver'] = new \Symfony\Component\HttpKernel\Controller\TraceableControllerResolver(new \Symfony\Bundle\FrameworkBundle\Controller\ControllerResolver($this, $this->get('controller_name_converter'), $this->get('monolog.logger.request', ContainerInterface::NULL_ON_INVALID_REFERENCE)), $this->get('debug.stopwatch')); |
|
295
|
|
|
} |
|
296
|
|
|
|
|
297
|
|
|
/** |
|
298
|
|
|
* Gets the 'debug.debug_handlers_listener' service. |
|
299
|
|
|
* |
|
300
|
|
|
* This service is shared. |
|
301
|
|
|
* This method always returns the same instance of the service. |
|
302
|
|
|
* |
|
303
|
|
|
* @return \Symfony\Component\HttpKernel\EventListener\DebugHandlersListener A Symfony\Component\HttpKernel\EventListener\DebugHandlersListener instance. |
|
304
|
|
|
*/ |
|
305
|
|
|
protected function getDebug_DebugHandlersListenerService() |
|
306
|
|
|
{ |
|
307
|
|
|
return $this->services['debug.debug_handlers_listener'] = new \Symfony\Component\HttpKernel\EventListener\DebugHandlersListener(NULL, $this->get('monolog.logger.php', ContainerInterface::NULL_ON_INVALID_REFERENCE), -4182, NULL, true, NULL); |
|
308
|
|
|
} |
|
309
|
|
|
|
|
310
|
|
|
/** |
|
311
|
|
|
* Gets the 'debug.event_dispatcher' service. |
|
312
|
|
|
* |
|
313
|
|
|
* This service is shared. |
|
314
|
|
|
* This method always returns the same instance of the service. |
|
315
|
|
|
* |
|
316
|
|
|
* @return \Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher A Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher instance. |
|
317
|
|
|
*/ |
|
318
|
|
|
protected function getDebug_EventDispatcherService() |
|
319
|
|
|
{ |
|
320
|
|
|
$this->services['debug.event_dispatcher'] = $instance = new \Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher(new \Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher($this), $this->get('debug.stopwatch'), $this->get('monolog.logger.event', ContainerInterface::NULL_ON_INVALID_REFERENCE)); |
|
321
|
|
|
|
|
322
|
|
|
$instance->addSubscriberService('response_listener', 'Symfony\\Component\\HttpKernel\\EventListener\\ResponseListener'); |
|
323
|
|
|
$instance->addSubscriberService('streamed_response_listener', 'Symfony\\Component\\HttpKernel\\EventListener\\StreamedResponseListener'); |
|
324
|
|
|
$instance->addSubscriberService('locale_listener', 'Symfony\\Component\\HttpKernel\\EventListener\\LocaleListener'); |
|
325
|
|
|
$instance->addSubscriberService('translator_listener', 'Symfony\\Component\\HttpKernel\\EventListener\\TranslatorListener'); |
|
326
|
|
|
$instance->addSubscriberService('test.session.listener', 'Symfony\\Bundle\\FrameworkBundle\\EventListener\\TestSessionListener'); |
|
327
|
|
|
$instance->addSubscriberService('session_listener', 'Symfony\\Bundle\\FrameworkBundle\\EventListener\\SessionListener'); |
|
328
|
|
|
$instance->addSubscriberService('session.save_listener', 'Symfony\\Component\\HttpKernel\\EventListener\\SaveSessionListener'); |
|
329
|
|
|
$instance->addSubscriberService('router_listener', 'Symfony\\Component\\HttpKernel\\EventListener\\RouterListener'); |
|
330
|
|
|
$instance->addSubscriberService('debug.debug_handlers_listener', 'Symfony\\Component\\HttpKernel\\EventListener\\DebugHandlersListener'); |
|
331
|
|
|
$instance->addSubscriberService('twig.exception_listener', 'Symfony\\Component\\HttpKernel\\EventListener\\ExceptionListener'); |
|
332
|
|
|
|
|
333
|
|
|
return $instance; |
|
334
|
|
|
} |
|
335
|
|
|
|
|
336
|
|
|
/** |
|
337
|
|
|
* Gets the 'debug.stopwatch' service. |
|
338
|
|
|
* |
|
339
|
|
|
* This service is shared. |
|
340
|
|
|
* This method always returns the same instance of the service. |
|
341
|
|
|
* |
|
342
|
|
|
* @return \Symfony\Component\Stopwatch\Stopwatch A Symfony\Component\Stopwatch\Stopwatch instance. |
|
343
|
|
|
*/ |
|
344
|
|
|
protected function getDebug_StopwatchService() |
|
345
|
|
|
{ |
|
346
|
|
|
return $this->services['debug.stopwatch'] = new \Symfony\Component\Stopwatch\Stopwatch(); |
|
347
|
|
|
} |
|
348
|
|
|
|
|
349
|
|
|
/** |
|
350
|
|
|
* Gets the 'file_locator' service. |
|
351
|
|
|
* |
|
352
|
|
|
* This service is shared. |
|
353
|
|
|
* This method always returns the same instance of the service. |
|
354
|
|
|
* |
|
355
|
|
|
* @return \Symfony\Component\HttpKernel\Config\FileLocator A Symfony\Component\HttpKernel\Config\FileLocator instance. |
|
356
|
|
|
*/ |
|
357
|
|
|
protected function getFileLocatorService() |
|
358
|
|
|
{ |
|
359
|
|
|
return $this->services['file_locator'] = new \Symfony\Component\HttpKernel\Config\FileLocator($this->get('kernel'), ($this->targetDirs[2].'/Resources')); |
|
360
|
|
|
} |
|
361
|
|
|
|
|
362
|
|
|
/** |
|
363
|
|
|
* Gets the 'filesystem' service. |
|
364
|
|
|
* |
|
365
|
|
|
* This service is shared. |
|
366
|
|
|
* This method always returns the same instance of the service. |
|
367
|
|
|
* |
|
368
|
|
|
* @return \Symfony\Component\Filesystem\Filesystem A Symfony\Component\Filesystem\Filesystem instance. |
|
369
|
|
|
*/ |
|
370
|
|
|
protected function getFilesystemService() |
|
371
|
|
|
{ |
|
372
|
|
|
return $this->services['filesystem'] = new \Symfony\Component\Filesystem\Filesystem(); |
|
373
|
|
|
} |
|
374
|
|
|
|
|
375
|
|
|
/** |
|
376
|
|
|
* Gets the 'form.csrf_provider' service. |
|
377
|
|
|
* |
|
378
|
|
|
* This service is shared. |
|
379
|
|
|
* This method always returns the same instance of the service. |
|
380
|
|
|
* |
|
381
|
|
|
* @return \Symfony\Component\Form\Extension\Csrf\CsrfProvider\CsrfTokenManagerAdapter A Symfony\Component\Form\Extension\Csrf\CsrfProvider\CsrfTokenManagerAdapter instance. |
|
382
|
|
|
* |
|
383
|
|
|
* @deprecated The "form.csrf_provider" service is deprecated since Symfony 2.4 and will be removed in 3.0. Use the "security.csrf.token_manager" service instead. |
|
384
|
|
|
*/ |
|
385
|
|
|
protected function getForm_CsrfProviderService() |
|
386
|
|
|
{ |
|
387
|
|
|
@trigger_error('The "form.csrf_provider" service is deprecated since Symfony 2.4 and will be removed in 3.0. Use the "security.csrf.token_manager" service instead.', E_USER_DEPRECATED); |
|
|
|
|
|
|
388
|
|
|
|
|
389
|
|
|
return $this->services['form.csrf_provider'] = new \Symfony\Component\Form\Extension\Csrf\CsrfProvider\CsrfTokenManagerAdapter($this->get('security.csrf.token_manager')); |
|
|
|
|
|
|
390
|
|
|
} |
|
391
|
|
|
|
|
392
|
|
|
/** |
|
393
|
|
|
* Gets the 'form.factory' service. |
|
394
|
|
|
* |
|
395
|
|
|
* This service is shared. |
|
396
|
|
|
* This method always returns the same instance of the service. |
|
397
|
|
|
* |
|
398
|
|
|
* @return \Symfony\Component\Form\FormFactory A Symfony\Component\Form\FormFactory instance. |
|
399
|
|
|
*/ |
|
400
|
|
|
protected function getForm_FactoryService() |
|
401
|
|
|
{ |
|
402
|
|
|
return $this->services['form.factory'] = new \Symfony\Component\Form\FormFactory($this->get('form.registry'), $this->get('form.resolved_type_factory')); |
|
403
|
|
|
} |
|
404
|
|
|
|
|
405
|
|
|
/** |
|
406
|
|
|
* Gets the 'form.registry' service. |
|
407
|
|
|
* |
|
408
|
|
|
* This service is shared. |
|
409
|
|
|
* This method always returns the same instance of the service. |
|
410
|
|
|
* |
|
411
|
|
|
* @return \Symfony\Component\Form\FormRegistry A Symfony\Component\Form\FormRegistry instance. |
|
412
|
|
|
*/ |
|
413
|
|
|
protected function getForm_RegistryService() |
|
414
|
|
|
{ |
|
415
|
|
|
return $this->services['form.registry'] = new \Symfony\Component\Form\FormRegistry(array(0 => new \Symfony\Component\Form\Extension\DependencyInjection\DependencyInjectionExtension($this, array('form' => 'form.type.form', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType' => 'form.type.form', 'birthday' => 'form.type.birthday', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\BirthdayType' => 'form.type.birthday', 'checkbox' => 'form.type.checkbox', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\CheckboxType' => 'form.type.checkbox', 'choice' => 'form.type.choice', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\ChoiceType' => 'form.type.choice', 'collection' => 'form.type.collection', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\CollectionType' => 'form.type.collection', 'country' => 'form.type.country', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\CountryType' => 'form.type.country', 'date' => 'form.type.date', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\DateType' => 'form.type.date', 'datetime' => 'form.type.datetime', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\DateTimeType' => 'form.type.datetime', 'email' => 'form.type.email', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\EmailType' => 'form.type.email', 'file' => 'form.type.file', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\FileType' => 'form.type.file', 'hidden' => 'form.type.hidden', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\HiddenType' => 'form.type.hidden', 'integer' => 'form.type.integer', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\IntegerType' => 'form.type.integer', 'language' => 'form.type.language', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\LanguageType' => 'form.type.language', 'locale' => 'form.type.locale', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\LocaleType' => 'form.type.locale', 'money' => 'form.type.money', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\MoneyType' => 'form.type.money', 'number' => 'form.type.number', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\NumberType' => 'form.type.number', 'password' => 'form.type.password', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\PasswordType' => 'form.type.password', 'percent' => 'form.type.percent', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\PercentType' => 'form.type.percent', 'radio' => 'form.type.radio', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\RadioType' => 'form.type.radio', 'range' => 'form.type.range', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\RangeType' => 'form.type.range', 'repeated' => 'form.type.repeated', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\RepeatedType' => 'form.type.repeated', 'search' => 'form.type.search', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\SearchType' => 'form.type.search', 'textarea' => 'form.type.textarea', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\TextareaType' => 'form.type.textarea', 'text' => 'form.type.text', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType' => 'form.type.text', 'time' => 'form.type.time', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\TimeType' => 'form.type.time', 'timezone' => 'form.type.timezone', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\TimezoneType' => 'form.type.timezone', 'url' => 'form.type.url', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\UrlType' => 'form.type.url', 'button' => 'form.type.button', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\ButtonType' => 'form.type.button', 'submit' => 'form.type.submit', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\SubmitType' => 'form.type.submit', 'reset' => 'form.type.reset', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\ResetType' => 'form.type.reset', 'currency' => 'form.type.currency', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\CurrencyType' => 'form.type.currency'), array('Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType' => array(0 => 'form.type_extension.form.http_foundation', 1 => 'form.type_extension.form.validator', 2 => 'form.type_extension.csrf'), 'Symfony\\Component\\Form\\Extension\\Core\\Type\\RepeatedType' => array(0 => 'form.type_extension.repeated.validator'), 'Symfony\\Component\\Form\\Extension\\Core\\Type\\SubmitType' => array(0 => 'form.type_extension.submit.validator')), array(0 => 'form.type_guesser.validator'))), $this->get('form.resolved_type_factory')); |
|
416
|
|
|
} |
|
417
|
|
|
|
|
418
|
|
|
/** |
|
419
|
|
|
* Gets the 'form.resolved_type_factory' service. |
|
420
|
|
|
* |
|
421
|
|
|
* This service is shared. |
|
422
|
|
|
* This method always returns the same instance of the service. |
|
423
|
|
|
* |
|
424
|
|
|
* @return \Symfony\Component\Form\ResolvedFormTypeFactory A Symfony\Component\Form\ResolvedFormTypeFactory instance. |
|
425
|
|
|
*/ |
|
426
|
|
|
protected function getForm_ResolvedTypeFactoryService() |
|
427
|
|
|
{ |
|
428
|
|
|
return $this->services['form.resolved_type_factory'] = new \Symfony\Component\Form\ResolvedFormTypeFactory(); |
|
429
|
|
|
} |
|
430
|
|
|
|
|
431
|
|
|
/** |
|
432
|
|
|
* Gets the 'form.type.birthday' service. |
|
433
|
|
|
* |
|
434
|
|
|
* This service is shared. |
|
435
|
|
|
* This method always returns the same instance of the service. |
|
436
|
|
|
* |
|
437
|
|
|
* @return \Symfony\Component\Form\Extension\Core\Type\BirthdayType A Symfony\Component\Form\Extension\Core\Type\BirthdayType instance. |
|
438
|
|
|
*/ |
|
439
|
|
|
protected function getForm_Type_BirthdayService() |
|
440
|
|
|
{ |
|
441
|
|
|
return $this->services['form.type.birthday'] = new \Symfony\Component\Form\Extension\Core\Type\BirthdayType(); |
|
442
|
|
|
} |
|
443
|
|
|
|
|
444
|
|
|
/** |
|
445
|
|
|
* Gets the 'form.type.button' service. |
|
446
|
|
|
* |
|
447
|
|
|
* This service is shared. |
|
448
|
|
|
* This method always returns the same instance of the service. |
|
449
|
|
|
* |
|
450
|
|
|
* @return \Symfony\Component\Form\Extension\Core\Type\ButtonType A Symfony\Component\Form\Extension\Core\Type\ButtonType instance. |
|
451
|
|
|
*/ |
|
452
|
|
|
protected function getForm_Type_ButtonService() |
|
453
|
|
|
{ |
|
454
|
|
|
return $this->services['form.type.button'] = new \Symfony\Component\Form\Extension\Core\Type\ButtonType(); |
|
455
|
|
|
} |
|
456
|
|
|
|
|
457
|
|
|
/** |
|
458
|
|
|
* Gets the 'form.type.checkbox' service. |
|
459
|
|
|
* |
|
460
|
|
|
* This service is shared. |
|
461
|
|
|
* This method always returns the same instance of the service. |
|
462
|
|
|
* |
|
463
|
|
|
* @return \Symfony\Component\Form\Extension\Core\Type\CheckboxType A Symfony\Component\Form\Extension\Core\Type\CheckboxType instance. |
|
464
|
|
|
*/ |
|
465
|
|
|
protected function getForm_Type_CheckboxService() |
|
466
|
|
|
{ |
|
467
|
|
|
return $this->services['form.type.checkbox'] = new \Symfony\Component\Form\Extension\Core\Type\CheckboxType(); |
|
468
|
|
|
} |
|
469
|
|
|
|
|
470
|
|
|
/** |
|
471
|
|
|
* Gets the 'form.type.choice' service. |
|
472
|
|
|
* |
|
473
|
|
|
* This service is shared. |
|
474
|
|
|
* This method always returns the same instance of the service. |
|
475
|
|
|
* |
|
476
|
|
|
* @return \Symfony\Component\Form\Extension\Core\Type\ChoiceType A Symfony\Component\Form\Extension\Core\Type\ChoiceType instance. |
|
477
|
|
|
*/ |
|
478
|
|
|
protected function getForm_Type_ChoiceService() |
|
479
|
|
|
{ |
|
480
|
|
|
return $this->services['form.type.choice'] = new \Symfony\Component\Form\Extension\Core\Type\ChoiceType(new \Symfony\Component\Form\ChoiceList\Factory\CachingFactoryDecorator(new \Symfony\Component\Form\ChoiceList\Factory\PropertyAccessDecorator(new \Symfony\Component\Form\ChoiceList\Factory\DefaultChoiceListFactory(), $this->get('property_accessor')))); |
|
481
|
|
|
} |
|
482
|
|
|
|
|
483
|
|
|
/** |
|
484
|
|
|
* Gets the 'form.type.collection' service. |
|
485
|
|
|
* |
|
486
|
|
|
* This service is shared. |
|
487
|
|
|
* This method always returns the same instance of the service. |
|
488
|
|
|
* |
|
489
|
|
|
* @return \Symfony\Component\Form\Extension\Core\Type\CollectionType A Symfony\Component\Form\Extension\Core\Type\CollectionType instance. |
|
490
|
|
|
*/ |
|
491
|
|
|
protected function getForm_Type_CollectionService() |
|
492
|
|
|
{ |
|
493
|
|
|
return $this->services['form.type.collection'] = new \Symfony\Component\Form\Extension\Core\Type\CollectionType(); |
|
494
|
|
|
} |
|
495
|
|
|
|
|
496
|
|
|
/** |
|
497
|
|
|
* Gets the 'form.type.country' service. |
|
498
|
|
|
* |
|
499
|
|
|
* This service is shared. |
|
500
|
|
|
* This method always returns the same instance of the service. |
|
501
|
|
|
* |
|
502
|
|
|
* @return \Symfony\Component\Form\Extension\Core\Type\CountryType A Symfony\Component\Form\Extension\Core\Type\CountryType instance. |
|
503
|
|
|
*/ |
|
504
|
|
|
protected function getForm_Type_CountryService() |
|
505
|
|
|
{ |
|
506
|
|
|
return $this->services['form.type.country'] = new \Symfony\Component\Form\Extension\Core\Type\CountryType(); |
|
507
|
|
|
} |
|
508
|
|
|
|
|
509
|
|
|
/** |
|
510
|
|
|
* Gets the 'form.type.currency' service. |
|
511
|
|
|
* |
|
512
|
|
|
* This service is shared. |
|
513
|
|
|
* This method always returns the same instance of the service. |
|
514
|
|
|
* |
|
515
|
|
|
* @return \Symfony\Component\Form\Extension\Core\Type\CurrencyType A Symfony\Component\Form\Extension\Core\Type\CurrencyType instance. |
|
516
|
|
|
*/ |
|
517
|
|
|
protected function getForm_Type_CurrencyService() |
|
518
|
|
|
{ |
|
519
|
|
|
return $this->services['form.type.currency'] = new \Symfony\Component\Form\Extension\Core\Type\CurrencyType(); |
|
520
|
|
|
} |
|
521
|
|
|
|
|
522
|
|
|
/** |
|
523
|
|
|
* Gets the 'form.type.date' service. |
|
524
|
|
|
* |
|
525
|
|
|
* This service is shared. |
|
526
|
|
|
* This method always returns the same instance of the service. |
|
527
|
|
|
* |
|
528
|
|
|
* @return \Symfony\Component\Form\Extension\Core\Type\DateType A Symfony\Component\Form\Extension\Core\Type\DateType instance. |
|
529
|
|
|
*/ |
|
530
|
|
|
protected function getForm_Type_DateService() |
|
531
|
|
|
{ |
|
532
|
|
|
return $this->services['form.type.date'] = new \Symfony\Component\Form\Extension\Core\Type\DateType(); |
|
533
|
|
|
} |
|
534
|
|
|
|
|
535
|
|
|
/** |
|
536
|
|
|
* Gets the 'form.type.datetime' service. |
|
537
|
|
|
* |
|
538
|
|
|
* This service is shared. |
|
539
|
|
|
* This method always returns the same instance of the service. |
|
540
|
|
|
* |
|
541
|
|
|
* @return \Symfony\Component\Form\Extension\Core\Type\DateTimeType A Symfony\Component\Form\Extension\Core\Type\DateTimeType instance. |
|
542
|
|
|
*/ |
|
543
|
|
|
protected function getForm_Type_DatetimeService() |
|
544
|
|
|
{ |
|
545
|
|
|
return $this->services['form.type.datetime'] = new \Symfony\Component\Form\Extension\Core\Type\DateTimeType(); |
|
546
|
|
|
} |
|
547
|
|
|
|
|
548
|
|
|
/** |
|
549
|
|
|
* Gets the 'form.type.email' service. |
|
550
|
|
|
* |
|
551
|
|
|
* This service is shared. |
|
552
|
|
|
* This method always returns the same instance of the service. |
|
553
|
|
|
* |
|
554
|
|
|
* @return \Symfony\Component\Form\Extension\Core\Type\EmailType A Symfony\Component\Form\Extension\Core\Type\EmailType instance. |
|
555
|
|
|
*/ |
|
556
|
|
|
protected function getForm_Type_EmailService() |
|
557
|
|
|
{ |
|
558
|
|
|
return $this->services['form.type.email'] = new \Symfony\Component\Form\Extension\Core\Type\EmailType(); |
|
559
|
|
|
} |
|
560
|
|
|
|
|
561
|
|
|
/** |
|
562
|
|
|
* Gets the 'form.type.file' service. |
|
563
|
|
|
* |
|
564
|
|
|
* This service is shared. |
|
565
|
|
|
* This method always returns the same instance of the service. |
|
566
|
|
|
* |
|
567
|
|
|
* @return \Symfony\Component\Form\Extension\Core\Type\FileType A Symfony\Component\Form\Extension\Core\Type\FileType instance. |
|
568
|
|
|
*/ |
|
569
|
|
|
protected function getForm_Type_FileService() |
|
570
|
|
|
{ |
|
571
|
|
|
return $this->services['form.type.file'] = new \Symfony\Component\Form\Extension\Core\Type\FileType(); |
|
572
|
|
|
} |
|
573
|
|
|
|
|
574
|
|
|
/** |
|
575
|
|
|
* Gets the 'form.type.form' service. |
|
576
|
|
|
* |
|
577
|
|
|
* This service is shared. |
|
578
|
|
|
* This method always returns the same instance of the service. |
|
579
|
|
|
* |
|
580
|
|
|
* @return \Symfony\Component\Form\Extension\Core\Type\FormType A Symfony\Component\Form\Extension\Core\Type\FormType instance. |
|
581
|
|
|
*/ |
|
582
|
|
|
protected function getForm_Type_FormService() |
|
583
|
|
|
{ |
|
584
|
|
|
return $this->services['form.type.form'] = new \Symfony\Component\Form\Extension\Core\Type\FormType($this->get('property_accessor')); |
|
585
|
|
|
} |
|
586
|
|
|
|
|
587
|
|
|
/** |
|
588
|
|
|
* Gets the 'form.type.hidden' service. |
|
589
|
|
|
* |
|
590
|
|
|
* This service is shared. |
|
591
|
|
|
* This method always returns the same instance of the service. |
|
592
|
|
|
* |
|
593
|
|
|
* @return \Symfony\Component\Form\Extension\Core\Type\HiddenType A Symfony\Component\Form\Extension\Core\Type\HiddenType instance. |
|
594
|
|
|
*/ |
|
595
|
|
|
protected function getForm_Type_HiddenService() |
|
596
|
|
|
{ |
|
597
|
|
|
return $this->services['form.type.hidden'] = new \Symfony\Component\Form\Extension\Core\Type\HiddenType(); |
|
598
|
|
|
} |
|
599
|
|
|
|
|
600
|
|
|
/** |
|
601
|
|
|
* Gets the 'form.type.integer' service. |
|
602
|
|
|
* |
|
603
|
|
|
* This service is shared. |
|
604
|
|
|
* This method always returns the same instance of the service. |
|
605
|
|
|
* |
|
606
|
|
|
* @return \Symfony\Component\Form\Extension\Core\Type\IntegerType A Symfony\Component\Form\Extension\Core\Type\IntegerType instance. |
|
607
|
|
|
*/ |
|
608
|
|
|
protected function getForm_Type_IntegerService() |
|
609
|
|
|
{ |
|
610
|
|
|
return $this->services['form.type.integer'] = new \Symfony\Component\Form\Extension\Core\Type\IntegerType(); |
|
611
|
|
|
} |
|
612
|
|
|
|
|
613
|
|
|
/** |
|
614
|
|
|
* Gets the 'form.type.language' service. |
|
615
|
|
|
* |
|
616
|
|
|
* This service is shared. |
|
617
|
|
|
* This method always returns the same instance of the service. |
|
618
|
|
|
* |
|
619
|
|
|
* @return \Symfony\Component\Form\Extension\Core\Type\LanguageType A Symfony\Component\Form\Extension\Core\Type\LanguageType instance. |
|
620
|
|
|
*/ |
|
621
|
|
|
protected function getForm_Type_LanguageService() |
|
622
|
|
|
{ |
|
623
|
|
|
return $this->services['form.type.language'] = new \Symfony\Component\Form\Extension\Core\Type\LanguageType(); |
|
624
|
|
|
} |
|
625
|
|
|
|
|
626
|
|
|
/** |
|
627
|
|
|
* Gets the 'form.type.locale' service. |
|
628
|
|
|
* |
|
629
|
|
|
* This service is shared. |
|
630
|
|
|
* This method always returns the same instance of the service. |
|
631
|
|
|
* |
|
632
|
|
|
* @return \Symfony\Component\Form\Extension\Core\Type\LocaleType A Symfony\Component\Form\Extension\Core\Type\LocaleType instance. |
|
633
|
|
|
*/ |
|
634
|
|
|
protected function getForm_Type_LocaleService() |
|
635
|
|
|
{ |
|
636
|
|
|
return $this->services['form.type.locale'] = new \Symfony\Component\Form\Extension\Core\Type\LocaleType(); |
|
637
|
|
|
} |
|
638
|
|
|
|
|
639
|
|
|
/** |
|
640
|
|
|
* Gets the 'form.type.money' service. |
|
641
|
|
|
* |
|
642
|
|
|
* This service is shared. |
|
643
|
|
|
* This method always returns the same instance of the service. |
|
644
|
|
|
* |
|
645
|
|
|
* @return \Symfony\Component\Form\Extension\Core\Type\MoneyType A Symfony\Component\Form\Extension\Core\Type\MoneyType instance. |
|
646
|
|
|
*/ |
|
647
|
|
|
protected function getForm_Type_MoneyService() |
|
648
|
|
|
{ |
|
649
|
|
|
return $this->services['form.type.money'] = new \Symfony\Component\Form\Extension\Core\Type\MoneyType(); |
|
650
|
|
|
} |
|
651
|
|
|
|
|
652
|
|
|
/** |
|
653
|
|
|
* Gets the 'form.type.number' service. |
|
654
|
|
|
* |
|
655
|
|
|
* This service is shared. |
|
656
|
|
|
* This method always returns the same instance of the service. |
|
657
|
|
|
* |
|
658
|
|
|
* @return \Symfony\Component\Form\Extension\Core\Type\NumberType A Symfony\Component\Form\Extension\Core\Type\NumberType instance. |
|
659
|
|
|
*/ |
|
660
|
|
|
protected function getForm_Type_NumberService() |
|
661
|
|
|
{ |
|
662
|
|
|
return $this->services['form.type.number'] = new \Symfony\Component\Form\Extension\Core\Type\NumberType(); |
|
663
|
|
|
} |
|
664
|
|
|
|
|
665
|
|
|
/** |
|
666
|
|
|
* Gets the 'form.type.password' service. |
|
667
|
|
|
* |
|
668
|
|
|
* This service is shared. |
|
669
|
|
|
* This method always returns the same instance of the service. |
|
670
|
|
|
* |
|
671
|
|
|
* @return \Symfony\Component\Form\Extension\Core\Type\PasswordType A Symfony\Component\Form\Extension\Core\Type\PasswordType instance. |
|
672
|
|
|
*/ |
|
673
|
|
|
protected function getForm_Type_PasswordService() |
|
674
|
|
|
{ |
|
675
|
|
|
return $this->services['form.type.password'] = new \Symfony\Component\Form\Extension\Core\Type\PasswordType(); |
|
676
|
|
|
} |
|
677
|
|
|
|
|
678
|
|
|
/** |
|
679
|
|
|
* Gets the 'form.type.percent' service. |
|
680
|
|
|
* |
|
681
|
|
|
* This service is shared. |
|
682
|
|
|
* This method always returns the same instance of the service. |
|
683
|
|
|
* |
|
684
|
|
|
* @return \Symfony\Component\Form\Extension\Core\Type\PercentType A Symfony\Component\Form\Extension\Core\Type\PercentType instance. |
|
685
|
|
|
*/ |
|
686
|
|
|
protected function getForm_Type_PercentService() |
|
687
|
|
|
{ |
|
688
|
|
|
return $this->services['form.type.percent'] = new \Symfony\Component\Form\Extension\Core\Type\PercentType(); |
|
689
|
|
|
} |
|
690
|
|
|
|
|
691
|
|
|
/** |
|
692
|
|
|
* Gets the 'form.type.radio' service. |
|
693
|
|
|
* |
|
694
|
|
|
* This service is shared. |
|
695
|
|
|
* This method always returns the same instance of the service. |
|
696
|
|
|
* |
|
697
|
|
|
* @return \Symfony\Component\Form\Extension\Core\Type\RadioType A Symfony\Component\Form\Extension\Core\Type\RadioType instance. |
|
698
|
|
|
*/ |
|
699
|
|
|
protected function getForm_Type_RadioService() |
|
700
|
|
|
{ |
|
701
|
|
|
return $this->services['form.type.radio'] = new \Symfony\Component\Form\Extension\Core\Type\RadioType(); |
|
702
|
|
|
} |
|
703
|
|
|
|
|
704
|
|
|
/** |
|
705
|
|
|
* Gets the 'form.type.range' service. |
|
706
|
|
|
* |
|
707
|
|
|
* This service is shared. |
|
708
|
|
|
* This method always returns the same instance of the service. |
|
709
|
|
|
* |
|
710
|
|
|
* @return \Symfony\Component\Form\Extension\Core\Type\RangeType A Symfony\Component\Form\Extension\Core\Type\RangeType instance. |
|
711
|
|
|
*/ |
|
712
|
|
|
protected function getForm_Type_RangeService() |
|
713
|
|
|
{ |
|
714
|
|
|
return $this->services['form.type.range'] = new \Symfony\Component\Form\Extension\Core\Type\RangeType(); |
|
715
|
|
|
} |
|
716
|
|
|
|
|
717
|
|
|
/** |
|
718
|
|
|
* Gets the 'form.type.repeated' service. |
|
719
|
|
|
* |
|
720
|
|
|
* This service is shared. |
|
721
|
|
|
* This method always returns the same instance of the service. |
|
722
|
|
|
* |
|
723
|
|
|
* @return \Symfony\Component\Form\Extension\Core\Type\RepeatedType A Symfony\Component\Form\Extension\Core\Type\RepeatedType instance. |
|
724
|
|
|
*/ |
|
725
|
|
|
protected function getForm_Type_RepeatedService() |
|
726
|
|
|
{ |
|
727
|
|
|
return $this->services['form.type.repeated'] = new \Symfony\Component\Form\Extension\Core\Type\RepeatedType(); |
|
728
|
|
|
} |
|
729
|
|
|
|
|
730
|
|
|
/** |
|
731
|
|
|
* Gets the 'form.type.reset' service. |
|
732
|
|
|
* |
|
733
|
|
|
* This service is shared. |
|
734
|
|
|
* This method always returns the same instance of the service. |
|
735
|
|
|
* |
|
736
|
|
|
* @return \Symfony\Component\Form\Extension\Core\Type\ResetType A Symfony\Component\Form\Extension\Core\Type\ResetType instance. |
|
737
|
|
|
*/ |
|
738
|
|
|
protected function getForm_Type_ResetService() |
|
739
|
|
|
{ |
|
740
|
|
|
return $this->services['form.type.reset'] = new \Symfony\Component\Form\Extension\Core\Type\ResetType(); |
|
741
|
|
|
} |
|
742
|
|
|
|
|
743
|
|
|
/** |
|
744
|
|
|
* Gets the 'form.type.search' service. |
|
745
|
|
|
* |
|
746
|
|
|
* This service is shared. |
|
747
|
|
|
* This method always returns the same instance of the service. |
|
748
|
|
|
* |
|
749
|
|
|
* @return \Symfony\Component\Form\Extension\Core\Type\SearchType A Symfony\Component\Form\Extension\Core\Type\SearchType instance. |
|
750
|
|
|
*/ |
|
751
|
|
|
protected function getForm_Type_SearchService() |
|
752
|
|
|
{ |
|
753
|
|
|
return $this->services['form.type.search'] = new \Symfony\Component\Form\Extension\Core\Type\SearchType(); |
|
754
|
|
|
} |
|
755
|
|
|
|
|
756
|
|
|
/** |
|
757
|
|
|
* Gets the 'form.type.submit' service. |
|
758
|
|
|
* |
|
759
|
|
|
* This service is shared. |
|
760
|
|
|
* This method always returns the same instance of the service. |
|
761
|
|
|
* |
|
762
|
|
|
* @return \Symfony\Component\Form\Extension\Core\Type\SubmitType A Symfony\Component\Form\Extension\Core\Type\SubmitType instance. |
|
763
|
|
|
*/ |
|
764
|
|
|
protected function getForm_Type_SubmitService() |
|
765
|
|
|
{ |
|
766
|
|
|
return $this->services['form.type.submit'] = new \Symfony\Component\Form\Extension\Core\Type\SubmitType(); |
|
767
|
|
|
} |
|
768
|
|
|
|
|
769
|
|
|
/** |
|
770
|
|
|
* Gets the 'form.type.text' service. |
|
771
|
|
|
* |
|
772
|
|
|
* This service is shared. |
|
773
|
|
|
* This method always returns the same instance of the service. |
|
774
|
|
|
* |
|
775
|
|
|
* @return \Symfony\Component\Form\Extension\Core\Type\TextType A Symfony\Component\Form\Extension\Core\Type\TextType instance. |
|
776
|
|
|
*/ |
|
777
|
|
|
protected function getForm_Type_TextService() |
|
778
|
|
|
{ |
|
779
|
|
|
return $this->services['form.type.text'] = new \Symfony\Component\Form\Extension\Core\Type\TextType(); |
|
780
|
|
|
} |
|
781
|
|
|
|
|
782
|
|
|
/** |
|
783
|
|
|
* Gets the 'form.type.textarea' service. |
|
784
|
|
|
* |
|
785
|
|
|
* This service is shared. |
|
786
|
|
|
* This method always returns the same instance of the service. |
|
787
|
|
|
* |
|
788
|
|
|
* @return \Symfony\Component\Form\Extension\Core\Type\TextareaType A Symfony\Component\Form\Extension\Core\Type\TextareaType instance. |
|
789
|
|
|
*/ |
|
790
|
|
|
protected function getForm_Type_TextareaService() |
|
791
|
|
|
{ |
|
792
|
|
|
return $this->services['form.type.textarea'] = new \Symfony\Component\Form\Extension\Core\Type\TextareaType(); |
|
793
|
|
|
} |
|
794
|
|
|
|
|
795
|
|
|
/** |
|
796
|
|
|
* Gets the 'form.type.time' service. |
|
797
|
|
|
* |
|
798
|
|
|
* This service is shared. |
|
799
|
|
|
* This method always returns the same instance of the service. |
|
800
|
|
|
* |
|
801
|
|
|
* @return \Symfony\Component\Form\Extension\Core\Type\TimeType A Symfony\Component\Form\Extension\Core\Type\TimeType instance. |
|
802
|
|
|
*/ |
|
803
|
|
|
protected function getForm_Type_TimeService() |
|
804
|
|
|
{ |
|
805
|
|
|
return $this->services['form.type.time'] = new \Symfony\Component\Form\Extension\Core\Type\TimeType(); |
|
806
|
|
|
} |
|
807
|
|
|
|
|
808
|
|
|
/** |
|
809
|
|
|
* Gets the 'form.type.timezone' service. |
|
810
|
|
|
* |
|
811
|
|
|
* This service is shared. |
|
812
|
|
|
* This method always returns the same instance of the service. |
|
813
|
|
|
* |
|
814
|
|
|
* @return \Symfony\Component\Form\Extension\Core\Type\TimezoneType A Symfony\Component\Form\Extension\Core\Type\TimezoneType instance. |
|
815
|
|
|
*/ |
|
816
|
|
|
protected function getForm_Type_TimezoneService() |
|
817
|
|
|
{ |
|
818
|
|
|
return $this->services['form.type.timezone'] = new \Symfony\Component\Form\Extension\Core\Type\TimezoneType(); |
|
819
|
|
|
} |
|
820
|
|
|
|
|
821
|
|
|
/** |
|
822
|
|
|
* Gets the 'form.type.url' service. |
|
823
|
|
|
* |
|
824
|
|
|
* This service is shared. |
|
825
|
|
|
* This method always returns the same instance of the service. |
|
826
|
|
|
* |
|
827
|
|
|
* @return \Symfony\Component\Form\Extension\Core\Type\UrlType A Symfony\Component\Form\Extension\Core\Type\UrlType instance. |
|
828
|
|
|
*/ |
|
829
|
|
|
protected function getForm_Type_UrlService() |
|
830
|
|
|
{ |
|
831
|
|
|
return $this->services['form.type.url'] = new \Symfony\Component\Form\Extension\Core\Type\UrlType(); |
|
832
|
|
|
} |
|
833
|
|
|
|
|
834
|
|
|
/** |
|
835
|
|
|
* Gets the 'form.type_extension.csrf' service. |
|
836
|
|
|
* |
|
837
|
|
|
* This service is shared. |
|
838
|
|
|
* This method always returns the same instance of the service. |
|
839
|
|
|
* |
|
840
|
|
|
* @return \Symfony\Component\Form\Extension\Csrf\Type\FormTypeCsrfExtension A Symfony\Component\Form\Extension\Csrf\Type\FormTypeCsrfExtension instance. |
|
841
|
|
|
*/ |
|
842
|
|
|
protected function getForm_TypeExtension_CsrfService() |
|
843
|
|
|
{ |
|
844
|
|
|
return $this->services['form.type_extension.csrf'] = new \Symfony\Component\Form\Extension\Csrf\Type\FormTypeCsrfExtension($this->get('security.csrf.token_manager'), true, '_token', $this->get('translator.default'), 'validators'); |
|
845
|
|
|
} |
|
846
|
|
|
|
|
847
|
|
|
/** |
|
848
|
|
|
* Gets the 'form.type_extension.form.http_foundation' service. |
|
849
|
|
|
* |
|
850
|
|
|
* This service is shared. |
|
851
|
|
|
* This method always returns the same instance of the service. |
|
852
|
|
|
* |
|
853
|
|
|
* @return \Symfony\Component\Form\Extension\HttpFoundation\Type\FormTypeHttpFoundationExtension A Symfony\Component\Form\Extension\HttpFoundation\Type\FormTypeHttpFoundationExtension instance. |
|
854
|
|
|
*/ |
|
855
|
|
|
protected function getForm_TypeExtension_Form_HttpFoundationService() |
|
856
|
|
|
{ |
|
857
|
|
|
return $this->services['form.type_extension.form.http_foundation'] = new \Symfony\Component\Form\Extension\HttpFoundation\Type\FormTypeHttpFoundationExtension(new \Symfony\Component\Form\Extension\HttpFoundation\HttpFoundationRequestHandler(new \Symfony\Component\Form\Util\ServerParams($this->get('request_stack')))); |
|
858
|
|
|
} |
|
859
|
|
|
|
|
860
|
|
|
/** |
|
861
|
|
|
* Gets the 'form.type_extension.form.validator' service. |
|
862
|
|
|
* |
|
863
|
|
|
* This service is shared. |
|
864
|
|
|
* This method always returns the same instance of the service. |
|
865
|
|
|
* |
|
866
|
|
|
* @return \Symfony\Component\Form\Extension\Validator\Type\FormTypeValidatorExtension A Symfony\Component\Form\Extension\Validator\Type\FormTypeValidatorExtension instance. |
|
867
|
|
|
*/ |
|
868
|
|
|
protected function getForm_TypeExtension_Form_ValidatorService() |
|
869
|
|
|
{ |
|
870
|
|
|
return $this->services['form.type_extension.form.validator'] = new \Symfony\Component\Form\Extension\Validator\Type\FormTypeValidatorExtension($this->get('validator')); |
|
871
|
|
|
} |
|
872
|
|
|
|
|
873
|
|
|
/** |
|
874
|
|
|
* Gets the 'form.type_extension.repeated.validator' service. |
|
875
|
|
|
* |
|
876
|
|
|
* This service is shared. |
|
877
|
|
|
* This method always returns the same instance of the service. |
|
878
|
|
|
* |
|
879
|
|
|
* @return \Symfony\Component\Form\Extension\Validator\Type\RepeatedTypeValidatorExtension A Symfony\Component\Form\Extension\Validator\Type\RepeatedTypeValidatorExtension instance. |
|
880
|
|
|
*/ |
|
881
|
|
|
protected function getForm_TypeExtension_Repeated_ValidatorService() |
|
882
|
|
|
{ |
|
883
|
|
|
return $this->services['form.type_extension.repeated.validator'] = new \Symfony\Component\Form\Extension\Validator\Type\RepeatedTypeValidatorExtension(); |
|
884
|
|
|
} |
|
885
|
|
|
|
|
886
|
|
|
/** |
|
887
|
|
|
* Gets the 'form.type_extension.submit.validator' service. |
|
888
|
|
|
* |
|
889
|
|
|
* This service is shared. |
|
890
|
|
|
* This method always returns the same instance of the service. |
|
891
|
|
|
* |
|
892
|
|
|
* @return \Symfony\Component\Form\Extension\Validator\Type\SubmitTypeValidatorExtension A Symfony\Component\Form\Extension\Validator\Type\SubmitTypeValidatorExtension instance. |
|
893
|
|
|
*/ |
|
894
|
|
|
protected function getForm_TypeExtension_Submit_ValidatorService() |
|
895
|
|
|
{ |
|
896
|
|
|
return $this->services['form.type_extension.submit.validator'] = new \Symfony\Component\Form\Extension\Validator\Type\SubmitTypeValidatorExtension(); |
|
897
|
|
|
} |
|
898
|
|
|
|
|
899
|
|
|
/** |
|
900
|
|
|
* Gets the 'form.type_guesser.validator' service. |
|
901
|
|
|
* |
|
902
|
|
|
* This service is shared. |
|
903
|
|
|
* This method always returns the same instance of the service. |
|
904
|
|
|
* |
|
905
|
|
|
* @return \Symfony\Component\Form\Extension\Validator\ValidatorTypeGuesser A Symfony\Component\Form\Extension\Validator\ValidatorTypeGuesser instance. |
|
906
|
|
|
*/ |
|
907
|
|
|
protected function getForm_TypeGuesser_ValidatorService() |
|
908
|
|
|
{ |
|
909
|
|
|
return $this->services['form.type_guesser.validator'] = new \Symfony\Component\Form\Extension\Validator\ValidatorTypeGuesser($this->get('validator')); |
|
910
|
|
|
} |
|
911
|
|
|
|
|
912
|
|
|
/** |
|
913
|
|
|
* Gets the 'fragment.handler' service. |
|
914
|
|
|
* |
|
915
|
|
|
* This service is shared. |
|
916
|
|
|
* This method always returns the same instance of the service. |
|
917
|
|
|
* |
|
918
|
|
|
* @return \Symfony\Component\HttpKernel\DependencyInjection\LazyLoadingFragmentHandler A Symfony\Component\HttpKernel\DependencyInjection\LazyLoadingFragmentHandler instance. |
|
919
|
|
|
*/ |
|
920
|
|
|
protected function getFragment_HandlerService() |
|
921
|
|
|
{ |
|
922
|
|
|
$this->services['fragment.handler'] = $instance = new \Symfony\Component\HttpKernel\DependencyInjection\LazyLoadingFragmentHandler($this, $this->get('request_stack'), true); |
|
923
|
|
|
|
|
924
|
|
|
$instance->addRendererService('inline', 'fragment.renderer.inline'); |
|
925
|
|
|
$instance->addRendererService('hinclude', 'fragment.renderer.hinclude'); |
|
926
|
|
|
$instance->addRendererService('hinclude', 'fragment.renderer.hinclude'); |
|
927
|
|
|
$instance->addRendererService('esi', 'fragment.renderer.esi'); |
|
928
|
|
|
$instance->addRendererService('ssi', 'fragment.renderer.ssi'); |
|
929
|
|
|
|
|
930
|
|
|
return $instance; |
|
931
|
|
|
} |
|
932
|
|
|
|
|
933
|
|
|
/** |
|
934
|
|
|
* Gets the 'fragment.renderer.esi' service. |
|
935
|
|
|
* |
|
936
|
|
|
* This service is shared. |
|
937
|
|
|
* This method always returns the same instance of the service. |
|
938
|
|
|
* |
|
939
|
|
|
* @return \Symfony\Component\HttpKernel\Fragment\EsiFragmentRenderer A Symfony\Component\HttpKernel\Fragment\EsiFragmentRenderer instance. |
|
940
|
|
|
*/ |
|
941
|
|
View Code Duplication |
protected function getFragment_Renderer_EsiService() |
|
|
|
|
|
|
942
|
|
|
{ |
|
943
|
|
|
$this->services['fragment.renderer.esi'] = $instance = new \Symfony\Component\HttpKernel\Fragment\EsiFragmentRenderer(NULL, $this->get('fragment.renderer.inline'), $this->get('uri_signer')); |
|
944
|
|
|
|
|
945
|
|
|
$instance->setFragmentPath('/_fragment'); |
|
946
|
|
|
|
|
947
|
|
|
return $instance; |
|
948
|
|
|
} |
|
949
|
|
|
|
|
950
|
|
|
/** |
|
951
|
|
|
* Gets the 'fragment.renderer.hinclude' service. |
|
952
|
|
|
* |
|
953
|
|
|
* This service is shared. |
|
954
|
|
|
* This method always returns the same instance of the service. |
|
955
|
|
|
* |
|
956
|
|
|
* @return \Symfony\Component\HttpKernel\Fragment\HIncludeFragmentRenderer A Symfony\Component\HttpKernel\Fragment\HIncludeFragmentRenderer instance. |
|
957
|
|
|
*/ |
|
958
|
|
|
protected function getFragment_Renderer_HincludeService() |
|
959
|
|
|
{ |
|
960
|
|
|
$this->services['fragment.renderer.hinclude'] = $instance = new \Symfony\Component\HttpKernel\Fragment\HIncludeFragmentRenderer($this->get('twig'), $this->get('uri_signer'), NULL); |
|
961
|
|
|
|
|
962
|
|
|
$instance->setFragmentPath('/_fragment'); |
|
963
|
|
|
|
|
964
|
|
|
return $instance; |
|
965
|
|
|
} |
|
966
|
|
|
|
|
967
|
|
|
/** |
|
968
|
|
|
* Gets the 'fragment.renderer.inline' service. |
|
969
|
|
|
* |
|
970
|
|
|
* This service is shared. |
|
971
|
|
|
* This method always returns the same instance of the service. |
|
972
|
|
|
* |
|
973
|
|
|
* @return \Symfony\Component\HttpKernel\Fragment\InlineFragmentRenderer A Symfony\Component\HttpKernel\Fragment\InlineFragmentRenderer instance. |
|
974
|
|
|
*/ |
|
975
|
|
|
protected function getFragment_Renderer_InlineService() |
|
976
|
|
|
{ |
|
977
|
|
|
$this->services['fragment.renderer.inline'] = $instance = new \Symfony\Component\HttpKernel\Fragment\InlineFragmentRenderer($this->get('http_kernel'), $this->get('debug.event_dispatcher')); |
|
978
|
|
|
|
|
979
|
|
|
$instance->setFragmentPath('/_fragment'); |
|
980
|
|
|
|
|
981
|
|
|
return $instance; |
|
982
|
|
|
} |
|
983
|
|
|
|
|
984
|
|
|
/** |
|
985
|
|
|
* Gets the 'fragment.renderer.ssi' service. |
|
986
|
|
|
* |
|
987
|
|
|
* This service is shared. |
|
988
|
|
|
* This method always returns the same instance of the service. |
|
989
|
|
|
* |
|
990
|
|
|
* @return \Symfony\Component\HttpKernel\Fragment\SsiFragmentRenderer A Symfony\Component\HttpKernel\Fragment\SsiFragmentRenderer instance. |
|
991
|
|
|
*/ |
|
992
|
|
View Code Duplication |
protected function getFragment_Renderer_SsiService() |
|
|
|
|
|
|
993
|
|
|
{ |
|
994
|
|
|
$this->services['fragment.renderer.ssi'] = $instance = new \Symfony\Component\HttpKernel\Fragment\SsiFragmentRenderer(NULL, $this->get('fragment.renderer.inline'), $this->get('uri_signer')); |
|
995
|
|
|
|
|
996
|
|
|
$instance->setFragmentPath('/_fragment'); |
|
997
|
|
|
|
|
998
|
|
|
return $instance; |
|
999
|
|
|
} |
|
1000
|
|
|
|
|
1001
|
|
|
/** |
|
1002
|
|
|
* Gets the 'http_kernel' service. |
|
1003
|
|
|
* |
|
1004
|
|
|
* This service is shared. |
|
1005
|
|
|
* This method always returns the same instance of the service. |
|
1006
|
|
|
* |
|
1007
|
|
|
* @return \Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel A Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel instance. |
|
1008
|
|
|
*/ |
|
1009
|
|
|
protected function getHttpKernelService() |
|
1010
|
|
|
{ |
|
1011
|
|
|
return $this->services['http_kernel'] = new \Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel($this->get('debug.event_dispatcher'), $this, $this->get('debug.controller_resolver'), $this->get('request_stack'), false); |
|
|
|
|
|
|
1012
|
|
|
} |
|
1013
|
|
|
|
|
1014
|
|
|
/** |
|
1015
|
|
|
* Gets the 'itkg_translation.command.translation' service. |
|
1016
|
|
|
* |
|
1017
|
|
|
* This service is shared. |
|
1018
|
|
|
* This method always returns the same instance of the service. |
|
1019
|
|
|
* |
|
1020
|
|
|
* @return \Itkg\TranslationBundle\Command\TranslationConverterCommand A Itkg\TranslationBundle\Command\TranslationConverterCommand instance. |
|
1021
|
|
|
*/ |
|
1022
|
|
|
protected function getItkgTranslation_Command_TranslationService() |
|
1023
|
|
|
{ |
|
1024
|
|
|
return $this->services['itkg_translation.command.translation'] = new \Itkg\TranslationBundle\Command\TranslationConverterCommand($this->get('itkg_translation.finder'), $this->get('filesystem')); |
|
1025
|
|
|
} |
|
1026
|
|
|
|
|
1027
|
|
|
/** |
|
1028
|
|
|
* Gets the 'itkg_translation.finder' service. |
|
1029
|
|
|
* |
|
1030
|
|
|
* This service is shared. |
|
1031
|
|
|
* This method always returns the same instance of the service. |
|
1032
|
|
|
* |
|
1033
|
|
|
* @return \Symfony\Component\Finder\Finder A Symfony\Component\Finder\Finder instance. |
|
1034
|
|
|
*/ |
|
1035
|
|
|
protected function getItkgTranslation_FinderService() |
|
1036
|
|
|
{ |
|
1037
|
|
|
return $this->services['itkg_translation.finder'] = new \Symfony\Component\Finder\Finder(); |
|
1038
|
|
|
} |
|
1039
|
|
|
|
|
1040
|
|
|
/** |
|
1041
|
|
|
* Gets the 'kernel' service. |
|
1042
|
|
|
* |
|
1043
|
|
|
* This service is shared. |
|
1044
|
|
|
* This method always returns the same instance of the service. |
|
1045
|
|
|
* |
|
1046
|
|
|
* @throws RuntimeException always since this service is expected to be injected dynamically |
|
1047
|
|
|
*/ |
|
1048
|
|
|
protected function getKernelService() |
|
1049
|
|
|
{ |
|
1050
|
|
|
throw new RuntimeException('You have requested a synthetic service ("kernel"). The DIC does not know how to construct this service.'); |
|
1051
|
|
|
} |
|
1052
|
|
|
|
|
1053
|
|
|
/** |
|
1054
|
|
|
* Gets the 'kernel.class_cache.cache_warmer' service. |
|
1055
|
|
|
* |
|
1056
|
|
|
* This service is shared. |
|
1057
|
|
|
* This method always returns the same instance of the service. |
|
1058
|
|
|
* |
|
1059
|
|
|
* @return \Symfony\Bundle\FrameworkBundle\CacheWarmer\ClassCacheCacheWarmer A Symfony\Bundle\FrameworkBundle\CacheWarmer\ClassCacheCacheWarmer instance. |
|
1060
|
|
|
*/ |
|
1061
|
|
|
protected function getKernel_ClassCache_CacheWarmerService() |
|
1062
|
|
|
{ |
|
1063
|
|
|
return $this->services['kernel.class_cache.cache_warmer'] = new \Symfony\Bundle\FrameworkBundle\CacheWarmer\ClassCacheCacheWarmer(); |
|
1064
|
|
|
} |
|
1065
|
|
|
|
|
1066
|
|
|
/** |
|
1067
|
|
|
* Gets the 'locale_listener' service. |
|
1068
|
|
|
* |
|
1069
|
|
|
* This service is shared. |
|
1070
|
|
|
* This method always returns the same instance of the service. |
|
1071
|
|
|
* |
|
1072
|
|
|
* @return \Symfony\Component\HttpKernel\EventListener\LocaleListener A Symfony\Component\HttpKernel\EventListener\LocaleListener instance. |
|
1073
|
|
|
*/ |
|
1074
|
|
|
protected function getLocaleListenerService() |
|
1075
|
|
|
{ |
|
1076
|
|
|
return $this->services['locale_listener'] = new \Symfony\Component\HttpKernel\EventListener\LocaleListener($this->get('request_stack'), 'en', $this->get('router', ContainerInterface::NULL_ON_INVALID_REFERENCE)); |
|
1077
|
|
|
} |
|
1078
|
|
|
|
|
1079
|
|
|
/** |
|
1080
|
|
|
* Gets the 'logger' service. |
|
1081
|
|
|
* |
|
1082
|
|
|
* This service is shared. |
|
1083
|
|
|
* This method always returns the same instance of the service. |
|
1084
|
|
|
* |
|
1085
|
|
|
* @return \Symfony\Bridge\Monolog\Logger A Symfony\Bridge\Monolog\Logger instance. |
|
1086
|
|
|
*/ |
|
1087
|
|
View Code Duplication |
protected function getLoggerService() |
|
|
|
|
|
|
1088
|
|
|
{ |
|
1089
|
|
|
$this->services['logger'] = $instance = new \Symfony\Bridge\Monolog\Logger('app'); |
|
1090
|
|
|
|
|
1091
|
|
|
$instance->pushHandler($this->get('monolog.handler.main')); |
|
1092
|
|
|
|
|
1093
|
|
|
return $instance; |
|
1094
|
|
|
} |
|
1095
|
|
|
|
|
1096
|
|
|
/** |
|
1097
|
|
|
* Gets the 'monolog.handler.main' service. |
|
1098
|
|
|
* |
|
1099
|
|
|
* This service is shared. |
|
1100
|
|
|
* This method always returns the same instance of the service. |
|
1101
|
|
|
* |
|
1102
|
|
|
* @return \Monolog\Handler\FingersCrossedHandler A Monolog\Handler\FingersCrossedHandler instance. |
|
1103
|
|
|
*/ |
|
1104
|
|
|
protected function getMonolog_Handler_MainService() |
|
1105
|
|
|
{ |
|
1106
|
|
|
return $this->services['monolog.handler.main'] = new \Monolog\Handler\FingersCrossedHandler($this->get('monolog.handler.nested'), 400, 0, true, true, NULL); |
|
1107
|
|
|
} |
|
1108
|
|
|
|
|
1109
|
|
|
/** |
|
1110
|
|
|
* Gets the 'monolog.handler.nested' service. |
|
1111
|
|
|
* |
|
1112
|
|
|
* This service is shared. |
|
1113
|
|
|
* This method always returns the same instance of the service. |
|
1114
|
|
|
* |
|
1115
|
|
|
* @return \Monolog\Handler\StreamHandler A Monolog\Handler\StreamHandler instance. |
|
1116
|
|
|
*/ |
|
1117
|
|
|
protected function getMonolog_Handler_NestedService() |
|
1118
|
|
|
{ |
|
1119
|
|
|
return $this->services['monolog.handler.nested'] = new \Monolog\Handler\StreamHandler(($this->targetDirs[2].'/logs/test.log'), 100, true, NULL); |
|
1120
|
|
|
} |
|
1121
|
|
|
|
|
1122
|
|
|
/** |
|
1123
|
|
|
* Gets the 'monolog.logger.event' service. |
|
1124
|
|
|
* |
|
1125
|
|
|
* This service is shared. |
|
1126
|
|
|
* This method always returns the same instance of the service. |
|
1127
|
|
|
* |
|
1128
|
|
|
* @return \Symfony\Bridge\Monolog\Logger A Symfony\Bridge\Monolog\Logger instance. |
|
1129
|
|
|
*/ |
|
1130
|
|
View Code Duplication |
protected function getMonolog_Logger_EventService() |
|
|
|
|
|
|
1131
|
|
|
{ |
|
1132
|
|
|
$this->services['monolog.logger.event'] = $instance = new \Symfony\Bridge\Monolog\Logger('event'); |
|
1133
|
|
|
|
|
1134
|
|
|
$instance->pushHandler($this->get('monolog.handler.main')); |
|
1135
|
|
|
|
|
1136
|
|
|
return $instance; |
|
1137
|
|
|
} |
|
1138
|
|
|
|
|
1139
|
|
|
/** |
|
1140
|
|
|
* Gets the 'monolog.logger.php' service. |
|
1141
|
|
|
* |
|
1142
|
|
|
* This service is shared. |
|
1143
|
|
|
* This method always returns the same instance of the service. |
|
1144
|
|
|
* |
|
1145
|
|
|
* @return \Symfony\Bridge\Monolog\Logger A Symfony\Bridge\Monolog\Logger instance. |
|
1146
|
|
|
*/ |
|
1147
|
|
View Code Duplication |
protected function getMonolog_Logger_PhpService() |
|
|
|
|
|
|
1148
|
|
|
{ |
|
1149
|
|
|
$this->services['monolog.logger.php'] = $instance = new \Symfony\Bridge\Monolog\Logger('php'); |
|
1150
|
|
|
|
|
1151
|
|
|
$instance->pushHandler($this->get('monolog.handler.main')); |
|
1152
|
|
|
|
|
1153
|
|
|
return $instance; |
|
1154
|
|
|
} |
|
1155
|
|
|
|
|
1156
|
|
|
/** |
|
1157
|
|
|
* Gets the 'monolog.logger.request' service. |
|
1158
|
|
|
* |
|
1159
|
|
|
* This service is shared. |
|
1160
|
|
|
* This method always returns the same instance of the service. |
|
1161
|
|
|
* |
|
1162
|
|
|
* @return \Symfony\Bridge\Monolog\Logger A Symfony\Bridge\Monolog\Logger instance. |
|
1163
|
|
|
*/ |
|
1164
|
|
|
protected function getMonolog_Logger_RequestService() |
|
1165
|
|
|
{ |
|
1166
|
|
|
$this->services['monolog.logger.request'] = $instance = new \Symfony\Bridge\Monolog\Logger('request'); |
|
1167
|
|
|
|
|
1168
|
|
|
$instance->pushHandler($this->get('monolog.handler.main')); |
|
1169
|
|
|
|
|
1170
|
|
|
return $instance; |
|
1171
|
|
|
} |
|
1172
|
|
|
|
|
1173
|
|
|
/** |
|
1174
|
|
|
* Gets the 'monolog.logger.router' service. |
|
1175
|
|
|
* |
|
1176
|
|
|
* This service is shared. |
|
1177
|
|
|
* This method always returns the same instance of the service. |
|
1178
|
|
|
* |
|
1179
|
|
|
* @return \Symfony\Bridge\Monolog\Logger A Symfony\Bridge\Monolog\Logger instance. |
|
1180
|
|
|
*/ |
|
1181
|
|
|
protected function getMonolog_Logger_RouterService() |
|
1182
|
|
|
{ |
|
1183
|
|
|
$this->services['monolog.logger.router'] = $instance = new \Symfony\Bridge\Monolog\Logger('router'); |
|
1184
|
|
|
|
|
1185
|
|
|
$instance->pushHandler($this->get('monolog.handler.main')); |
|
1186
|
|
|
|
|
1187
|
|
|
return $instance; |
|
1188
|
|
|
} |
|
1189
|
|
|
|
|
1190
|
|
|
/** |
|
1191
|
|
|
* Gets the 'monolog.logger.templating' service. |
|
1192
|
|
|
* |
|
1193
|
|
|
* This service is shared. |
|
1194
|
|
|
* This method always returns the same instance of the service. |
|
1195
|
|
|
* |
|
1196
|
|
|
* @return \Symfony\Bridge\Monolog\Logger A Symfony\Bridge\Monolog\Logger instance. |
|
1197
|
|
|
*/ |
|
1198
|
|
|
protected function getMonolog_Logger_TemplatingService() |
|
1199
|
|
|
{ |
|
1200
|
|
|
$this->services['monolog.logger.templating'] = $instance = new \Symfony\Bridge\Monolog\Logger('templating'); |
|
1201
|
|
|
|
|
1202
|
|
|
$instance->pushHandler($this->get('monolog.handler.main')); |
|
1203
|
|
|
|
|
1204
|
|
|
return $instance; |
|
1205
|
|
|
} |
|
1206
|
|
|
|
|
1207
|
|
|
/** |
|
1208
|
|
|
* Gets the 'monolog.logger.translation' service. |
|
1209
|
|
|
* |
|
1210
|
|
|
* This service is shared. |
|
1211
|
|
|
* This method always returns the same instance of the service. |
|
1212
|
|
|
* |
|
1213
|
|
|
* @return \Symfony\Bridge\Monolog\Logger A Symfony\Bridge\Monolog\Logger instance. |
|
1214
|
|
|
*/ |
|
1215
|
|
|
protected function getMonolog_Logger_TranslationService() |
|
1216
|
|
|
{ |
|
1217
|
|
|
$this->services['monolog.logger.translation'] = $instance = new \Symfony\Bridge\Monolog\Logger('translation'); |
|
1218
|
|
|
|
|
1219
|
|
|
$instance->pushHandler($this->get('monolog.handler.main')); |
|
1220
|
|
|
|
|
1221
|
|
|
return $instance; |
|
1222
|
|
|
} |
|
1223
|
|
|
|
|
1224
|
|
|
/** |
|
1225
|
|
|
* Gets the 'property_accessor' service. |
|
1226
|
|
|
* |
|
1227
|
|
|
* This service is shared. |
|
1228
|
|
|
* This method always returns the same instance of the service. |
|
1229
|
|
|
* |
|
1230
|
|
|
* @return \Symfony\Component\PropertyAccess\PropertyAccessor A Symfony\Component\PropertyAccess\PropertyAccessor instance. |
|
1231
|
|
|
*/ |
|
1232
|
|
|
protected function getPropertyAccessorService() |
|
1233
|
|
|
{ |
|
1234
|
|
|
return $this->services['property_accessor'] = new \Symfony\Component\PropertyAccess\PropertyAccessor(false, false); |
|
1235
|
|
|
} |
|
1236
|
|
|
|
|
1237
|
|
|
/** |
|
1238
|
|
|
* Gets the 'request' service. |
|
1239
|
|
|
* |
|
1240
|
|
|
* This service is shared. |
|
1241
|
|
|
* This method always returns the same instance of the service. |
|
1242
|
|
|
* |
|
1243
|
|
|
* @throws RuntimeException always since this service is expected to be injected dynamically |
|
1244
|
|
|
* @throws InactiveScopeException when the 'request' service is requested while the 'request' scope is not active |
|
1245
|
|
|
* @deprecated The "request" service is deprecated since Symfony 2.7 and will be removed in 3.0. Use the "request_stack" service instead. |
|
1246
|
|
|
*/ |
|
1247
|
|
|
protected function getRequestService() |
|
1248
|
|
|
{ |
|
1249
|
|
|
if (!isset($this->scopedServices['request'])) { |
|
1250
|
|
|
throw new InactiveScopeException('request', 'request'); |
|
1251
|
|
|
} |
|
1252
|
|
|
|
|
1253
|
|
|
throw new RuntimeException('You have requested a synthetic service ("request"). The DIC does not know how to construct this service.'); |
|
1254
|
|
|
} |
|
1255
|
|
|
|
|
1256
|
|
|
/** |
|
1257
|
|
|
* Gets the 'request_stack' service. |
|
1258
|
|
|
* |
|
1259
|
|
|
* This service is shared. |
|
1260
|
|
|
* This method always returns the same instance of the service. |
|
1261
|
|
|
* |
|
1262
|
|
|
* @return \Symfony\Component\HttpFoundation\RequestStack A Symfony\Component\HttpFoundation\RequestStack instance. |
|
1263
|
|
|
*/ |
|
1264
|
|
|
protected function getRequestStackService() |
|
1265
|
|
|
{ |
|
1266
|
|
|
return $this->services['request_stack'] = new \Symfony\Component\HttpFoundation\RequestStack(); |
|
1267
|
|
|
} |
|
1268
|
|
|
|
|
1269
|
|
|
/** |
|
1270
|
|
|
* Gets the 'response_listener' service. |
|
1271
|
|
|
* |
|
1272
|
|
|
* This service is shared. |
|
1273
|
|
|
* This method always returns the same instance of the service. |
|
1274
|
|
|
* |
|
1275
|
|
|
* @return \Symfony\Component\HttpKernel\EventListener\ResponseListener A Symfony\Component\HttpKernel\EventListener\ResponseListener instance. |
|
1276
|
|
|
*/ |
|
1277
|
|
|
protected function getResponseListenerService() |
|
1278
|
|
|
{ |
|
1279
|
|
|
return $this->services['response_listener'] = new \Symfony\Component\HttpKernel\EventListener\ResponseListener('UTF-8'); |
|
1280
|
|
|
} |
|
1281
|
|
|
|
|
1282
|
|
|
/** |
|
1283
|
|
|
* Gets the 'router' service. |
|
1284
|
|
|
* |
|
1285
|
|
|
* This service is shared. |
|
1286
|
|
|
* This method always returns the same instance of the service. |
|
1287
|
|
|
* |
|
1288
|
|
|
* @return \Symfony\Bundle\FrameworkBundle\Routing\Router A Symfony\Bundle\FrameworkBundle\Routing\Router instance. |
|
1289
|
|
|
*/ |
|
1290
|
|
|
protected function getRouterService() |
|
1291
|
|
|
{ |
|
1292
|
|
|
$this->services['router'] = $instance = new \Symfony\Bundle\FrameworkBundle\Routing\Router($this, ($this->targetDirs[2].'/routing.yml'), array('cache_dir' => __DIR__, 'debug' => true, 'generator_class' => 'Symfony\\Component\\Routing\\Generator\\UrlGenerator', 'generator_base_class' => 'Symfony\\Component\\Routing\\Generator\\UrlGenerator', 'generator_dumper_class' => 'Symfony\\Component\\Routing\\Generator\\Dumper\\PhpGeneratorDumper', 'generator_cache_class' => 'AppTestUrlGenerator', 'matcher_class' => 'Symfony\\Bundle\\FrameworkBundle\\Routing\\RedirectableUrlMatcher', 'matcher_base_class' => 'Symfony\\Bundle\\FrameworkBundle\\Routing\\RedirectableUrlMatcher', 'matcher_dumper_class' => 'Symfony\\Component\\Routing\\Matcher\\Dumper\\PhpMatcherDumper', 'matcher_cache_class' => 'AppTestUrlMatcher', 'strict_requirements' => true), $this->get('router.request_context', ContainerInterface::NULL_ON_INVALID_REFERENCE), $this->get('monolog.logger.router', ContainerInterface::NULL_ON_INVALID_REFERENCE)); |
|
|
|
|
|
|
1293
|
|
|
|
|
1294
|
|
|
$instance->setConfigCacheFactory($this->get('config_cache_factory')); |
|
1295
|
|
|
|
|
1296
|
|
|
return $instance; |
|
1297
|
|
|
} |
|
1298
|
|
|
|
|
1299
|
|
|
/** |
|
1300
|
|
|
* Gets the 'router_listener' service. |
|
1301
|
|
|
* |
|
1302
|
|
|
* This service is shared. |
|
1303
|
|
|
* This method always returns the same instance of the service. |
|
1304
|
|
|
* |
|
1305
|
|
|
* @return \Symfony\Component\HttpKernel\EventListener\RouterListener A Symfony\Component\HttpKernel\EventListener\RouterListener instance. |
|
1306
|
|
|
*/ |
|
1307
|
|
|
protected function getRouterListenerService() |
|
1308
|
|
|
{ |
|
1309
|
|
|
return $this->services['router_listener'] = new \Symfony\Component\HttpKernel\EventListener\RouterListener($this->get('router'), $this->get('request_stack'), $this->get('router.request_context', ContainerInterface::NULL_ON_INVALID_REFERENCE), $this->get('monolog.logger.request', ContainerInterface::NULL_ON_INVALID_REFERENCE)); |
|
1310
|
|
|
} |
|
1311
|
|
|
|
|
1312
|
|
|
/** |
|
1313
|
|
|
* Gets the 'routing.loader' service. |
|
1314
|
|
|
* |
|
1315
|
|
|
* This service is shared. |
|
1316
|
|
|
* This method always returns the same instance of the service. |
|
1317
|
|
|
* |
|
1318
|
|
|
* @return \Symfony\Bundle\FrameworkBundle\Routing\DelegatingLoader A Symfony\Bundle\FrameworkBundle\Routing\DelegatingLoader instance. |
|
1319
|
|
|
*/ |
|
1320
|
|
|
protected function getRouting_LoaderService() |
|
1321
|
|
|
{ |
|
1322
|
|
|
$a = $this->get('file_locator'); |
|
1323
|
|
|
|
|
1324
|
|
|
$b = new \Symfony\Component\Config\Loader\LoaderResolver(); |
|
1325
|
|
|
$b->addLoader(new \Symfony\Component\Routing\Loader\XmlFileLoader($a)); |
|
1326
|
|
|
$b->addLoader(new \Symfony\Component\Routing\Loader\YamlFileLoader($a)); |
|
1327
|
|
|
$b->addLoader(new \Symfony\Component\Routing\Loader\PhpFileLoader($a)); |
|
1328
|
|
|
$b->addLoader(new \Symfony\Component\Routing\Loader\DirectoryLoader($a)); |
|
1329
|
|
|
$b->addLoader(new \Symfony\Component\Routing\Loader\DependencyInjection\ServiceRouterLoader($this)); |
|
1330
|
|
|
|
|
1331
|
|
|
return $this->services['routing.loader'] = new \Symfony\Bundle\FrameworkBundle\Routing\DelegatingLoader($this->get('controller_name_converter'), $b); |
|
1332
|
|
|
} |
|
1333
|
|
|
|
|
1334
|
|
|
/** |
|
1335
|
|
|
* Gets the 'security.csrf.token_manager' service. |
|
1336
|
|
|
* |
|
1337
|
|
|
* This service is shared. |
|
1338
|
|
|
* This method always returns the same instance of the service. |
|
1339
|
|
|
* |
|
1340
|
|
|
* @return \Symfony\Component\Security\Csrf\CsrfTokenManager A Symfony\Component\Security\Csrf\CsrfTokenManager instance. |
|
1341
|
|
|
*/ |
|
1342
|
|
|
protected function getSecurity_Csrf_TokenManagerService() |
|
1343
|
|
|
{ |
|
1344
|
|
|
return $this->services['security.csrf.token_manager'] = new \Symfony\Component\Security\Csrf\CsrfTokenManager(new \Symfony\Component\Security\Csrf\TokenGenerator\UriSafeTokenGenerator(), new \Symfony\Component\Security\Csrf\TokenStorage\SessionTokenStorage($this->get('session'))); |
|
1345
|
|
|
} |
|
1346
|
|
|
|
|
1347
|
|
|
/** |
|
1348
|
|
|
* Gets the 'security.secure_random' service. |
|
1349
|
|
|
* |
|
1350
|
|
|
* This service is shared. |
|
1351
|
|
|
* This method always returns the same instance of the service. |
|
1352
|
|
|
* |
|
1353
|
|
|
* @return \Symfony\Component\Security\Core\Util\SecureRandom A Symfony\Component\Security\Core\Util\SecureRandom instance. |
|
1354
|
|
|
* |
|
1355
|
|
|
* @deprecated The "security.secure_random" service is deprecated since Symfony 2.8 and will be removed in 3.0. Use the random_bytes() function instead. |
|
1356
|
|
|
*/ |
|
1357
|
|
|
protected function getSecurity_SecureRandomService() |
|
1358
|
|
|
{ |
|
1359
|
|
|
@trigger_error('The "security.secure_random" service is deprecated since Symfony 2.8 and will be removed in 3.0. Use the random_bytes() function instead.', E_USER_DEPRECATED); |
|
|
|
|
|
|
1360
|
|
|
|
|
1361
|
|
|
return $this->services['security.secure_random'] = new \Symfony\Component\Security\Core\Util\SecureRandom(); |
|
|
|
|
|
|
1362
|
|
|
} |
|
1363
|
|
|
|
|
1364
|
|
|
/** |
|
1365
|
|
|
* Gets the 'service_container' service. |
|
1366
|
|
|
* |
|
1367
|
|
|
* This service is shared. |
|
1368
|
|
|
* This method always returns the same instance of the service. |
|
1369
|
|
|
* |
|
1370
|
|
|
* @throws RuntimeException always since this service is expected to be injected dynamically |
|
1371
|
|
|
*/ |
|
1372
|
|
|
protected function getServiceContainerService() |
|
1373
|
|
|
{ |
|
1374
|
|
|
throw new RuntimeException('You have requested a synthetic service ("service_container"). The DIC does not know how to construct this service.'); |
|
1375
|
|
|
} |
|
1376
|
|
|
|
|
1377
|
|
|
/** |
|
1378
|
|
|
* Gets the 'session' service. |
|
1379
|
|
|
* |
|
1380
|
|
|
* This service is shared. |
|
1381
|
|
|
* This method always returns the same instance of the service. |
|
1382
|
|
|
* |
|
1383
|
|
|
* @return \Symfony\Component\HttpFoundation\Session\Session A Symfony\Component\HttpFoundation\Session\Session instance. |
|
1384
|
|
|
*/ |
|
1385
|
|
|
protected function getSessionService() |
|
1386
|
|
|
{ |
|
1387
|
|
|
return $this->services['session'] = new \Symfony\Component\HttpFoundation\Session\Session($this->get('session.storage.filesystem'), new \Symfony\Component\HttpFoundation\Session\Attribute\AttributeBag(), new \Symfony\Component\HttpFoundation\Session\Flash\FlashBag()); |
|
1388
|
|
|
} |
|
1389
|
|
|
|
|
1390
|
|
|
/** |
|
1391
|
|
|
* Gets the 'session.handler' service. |
|
1392
|
|
|
* |
|
1393
|
|
|
* This service is shared. |
|
1394
|
|
|
* This method always returns the same instance of the service. |
|
1395
|
|
|
* |
|
1396
|
|
|
* @return \Symfony\Component\HttpFoundation\Session\Storage\Handler\NativeFileSessionHandler A Symfony\Component\HttpFoundation\Session\Storage\Handler\NativeFileSessionHandler instance. |
|
1397
|
|
|
*/ |
|
1398
|
|
|
protected function getSession_HandlerService() |
|
1399
|
|
|
{ |
|
1400
|
|
|
return $this->services['session.handler'] = new \Symfony\Component\HttpFoundation\Session\Storage\Handler\NativeFileSessionHandler((__DIR__.'/sessions')); |
|
1401
|
|
|
} |
|
1402
|
|
|
|
|
1403
|
|
|
/** |
|
1404
|
|
|
* Gets the 'session.save_listener' service. |
|
1405
|
|
|
* |
|
1406
|
|
|
* This service is shared. |
|
1407
|
|
|
* This method always returns the same instance of the service. |
|
1408
|
|
|
* |
|
1409
|
|
|
* @return \Symfony\Component\HttpKernel\EventListener\SaveSessionListener A Symfony\Component\HttpKernel\EventListener\SaveSessionListener instance. |
|
1410
|
|
|
*/ |
|
1411
|
|
|
protected function getSession_SaveListenerService() |
|
1412
|
|
|
{ |
|
1413
|
|
|
return $this->services['session.save_listener'] = new \Symfony\Component\HttpKernel\EventListener\SaveSessionListener(); |
|
1414
|
|
|
} |
|
1415
|
|
|
|
|
1416
|
|
|
/** |
|
1417
|
|
|
* Gets the 'session.storage.filesystem' service. |
|
1418
|
|
|
* |
|
1419
|
|
|
* This service is shared. |
|
1420
|
|
|
* This method always returns the same instance of the service. |
|
1421
|
|
|
* |
|
1422
|
|
|
* @return \Symfony\Component\HttpFoundation\Session\Storage\MockFileSessionStorage A Symfony\Component\HttpFoundation\Session\Storage\MockFileSessionStorage instance. |
|
1423
|
|
|
*/ |
|
1424
|
|
|
protected function getSession_Storage_FilesystemService() |
|
1425
|
|
|
{ |
|
1426
|
|
|
return $this->services['session.storage.filesystem'] = new \Symfony\Component\HttpFoundation\Session\Storage\MockFileSessionStorage((__DIR__.'/sessions'), 'MOCKSESSID', $this->get('session.storage.metadata_bag')); |
|
1427
|
|
|
} |
|
1428
|
|
|
|
|
1429
|
|
|
/** |
|
1430
|
|
|
* Gets the 'session.storage.native' service. |
|
1431
|
|
|
* |
|
1432
|
|
|
* This service is shared. |
|
1433
|
|
|
* This method always returns the same instance of the service. |
|
1434
|
|
|
* |
|
1435
|
|
|
* @return \Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage A Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage instance. |
|
1436
|
|
|
*/ |
|
1437
|
|
|
protected function getSession_Storage_NativeService() |
|
1438
|
|
|
{ |
|
1439
|
|
|
return $this->services['session.storage.native'] = new \Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage(array('cookie_httponly' => true, 'gc_probability' => 1), $this->get('session.handler'), $this->get('session.storage.metadata_bag')); |
|
1440
|
|
|
} |
|
1441
|
|
|
|
|
1442
|
|
|
/** |
|
1443
|
|
|
* Gets the 'session.storage.php_bridge' service. |
|
1444
|
|
|
* |
|
1445
|
|
|
* This service is shared. |
|
1446
|
|
|
* This method always returns the same instance of the service. |
|
1447
|
|
|
* |
|
1448
|
|
|
* @return \Symfony\Component\HttpFoundation\Session\Storage\PhpBridgeSessionStorage A Symfony\Component\HttpFoundation\Session\Storage\PhpBridgeSessionStorage instance. |
|
1449
|
|
|
*/ |
|
1450
|
|
|
protected function getSession_Storage_PhpBridgeService() |
|
1451
|
|
|
{ |
|
1452
|
|
|
return $this->services['session.storage.php_bridge'] = new \Symfony\Component\HttpFoundation\Session\Storage\PhpBridgeSessionStorage($this->get('session.handler'), $this->get('session.storage.metadata_bag')); |
|
1453
|
|
|
} |
|
1454
|
|
|
|
|
1455
|
|
|
/** |
|
1456
|
|
|
* Gets the 'session_listener' service. |
|
1457
|
|
|
* |
|
1458
|
|
|
* This service is shared. |
|
1459
|
|
|
* This method always returns the same instance of the service. |
|
1460
|
|
|
* |
|
1461
|
|
|
* @return \Symfony\Bundle\FrameworkBundle\EventListener\SessionListener A Symfony\Bundle\FrameworkBundle\EventListener\SessionListener instance. |
|
1462
|
|
|
*/ |
|
1463
|
|
|
protected function getSessionListenerService() |
|
1464
|
|
|
{ |
|
1465
|
|
|
return $this->services['session_listener'] = new \Symfony\Bundle\FrameworkBundle\EventListener\SessionListener($this); |
|
1466
|
|
|
} |
|
1467
|
|
|
|
|
1468
|
|
|
/** |
|
1469
|
|
|
* Gets the 'streamed_response_listener' service. |
|
1470
|
|
|
* |
|
1471
|
|
|
* This service is shared. |
|
1472
|
|
|
* This method always returns the same instance of the service. |
|
1473
|
|
|
* |
|
1474
|
|
|
* @return \Symfony\Component\HttpKernel\EventListener\StreamedResponseListener A Symfony\Component\HttpKernel\EventListener\StreamedResponseListener instance. |
|
1475
|
|
|
*/ |
|
1476
|
|
|
protected function getStreamedResponseListenerService() |
|
1477
|
|
|
{ |
|
1478
|
|
|
return $this->services['streamed_response_listener'] = new \Symfony\Component\HttpKernel\EventListener\StreamedResponseListener(); |
|
1479
|
|
|
} |
|
1480
|
|
|
|
|
1481
|
|
|
/** |
|
1482
|
|
|
* Gets the 'templating' service. |
|
1483
|
|
|
* |
|
1484
|
|
|
* This service is shared. |
|
1485
|
|
|
* This method always returns the same instance of the service. |
|
1486
|
|
|
* |
|
1487
|
|
|
* @return \Symfony\Bundle\TwigBundle\TwigEngine A Symfony\Bundle\TwigBundle\TwigEngine instance. |
|
1488
|
|
|
*/ |
|
1489
|
|
|
protected function getTemplatingService() |
|
1490
|
|
|
{ |
|
1491
|
|
|
return $this->services['templating'] = new \Symfony\Bundle\TwigBundle\TwigEngine($this->get('twig'), $this->get('templating.name_parser'), $this->get('templating.locator')); |
|
1492
|
|
|
} |
|
1493
|
|
|
|
|
1494
|
|
|
/** |
|
1495
|
|
|
* Gets the 'templating.filename_parser' service. |
|
1496
|
|
|
* |
|
1497
|
|
|
* This service is shared. |
|
1498
|
|
|
* This method always returns the same instance of the service. |
|
1499
|
|
|
* |
|
1500
|
|
|
* @return \Symfony\Bundle\FrameworkBundle\Templating\TemplateFilenameParser A Symfony\Bundle\FrameworkBundle\Templating\TemplateFilenameParser instance. |
|
1501
|
|
|
*/ |
|
1502
|
|
|
protected function getTemplating_FilenameParserService() |
|
1503
|
|
|
{ |
|
1504
|
|
|
return $this->services['templating.filename_parser'] = new \Symfony\Bundle\FrameworkBundle\Templating\TemplateFilenameParser(); |
|
1505
|
|
|
} |
|
1506
|
|
|
|
|
1507
|
|
|
/** |
|
1508
|
|
|
* Gets the 'templating.helper.assets' service. |
|
1509
|
|
|
* |
|
1510
|
|
|
* This service is shared. |
|
1511
|
|
|
* This method always returns the same instance of the service. |
|
1512
|
|
|
* |
|
1513
|
|
|
* @return \Symfony\Bundle\FrameworkBundle\Templating\Helper\AssetsHelper A Symfony\Bundle\FrameworkBundle\Templating\Helper\AssetsHelper instance. |
|
1514
|
|
|
*/ |
|
1515
|
|
|
protected function getTemplating_Helper_AssetsService() |
|
1516
|
|
|
{ |
|
1517
|
|
|
return $this->services['templating.helper.assets'] = new \Symfony\Bundle\FrameworkBundle\Templating\Helper\AssetsHelper($this->get('assets.packages'), array()); |
|
|
|
|
|
|
1518
|
|
|
} |
|
1519
|
|
|
|
|
1520
|
|
|
/** |
|
1521
|
|
|
* Gets the 'templating.helper.router' service. |
|
1522
|
|
|
* |
|
1523
|
|
|
* This service is shared. |
|
1524
|
|
|
* This method always returns the same instance of the service. |
|
1525
|
|
|
* |
|
1526
|
|
|
* @return \Symfony\Bundle\FrameworkBundle\Templating\Helper\RouterHelper A Symfony\Bundle\FrameworkBundle\Templating\Helper\RouterHelper instance. |
|
1527
|
|
|
*/ |
|
1528
|
|
|
protected function getTemplating_Helper_RouterService() |
|
1529
|
|
|
{ |
|
1530
|
|
|
return $this->services['templating.helper.router'] = new \Symfony\Bundle\FrameworkBundle\Templating\Helper\RouterHelper($this->get('router')); |
|
1531
|
|
|
} |
|
1532
|
|
|
|
|
1533
|
|
|
/** |
|
1534
|
|
|
* Gets the 'templating.loader' service. |
|
1535
|
|
|
* |
|
1536
|
|
|
* This service is shared. |
|
1537
|
|
|
* This method always returns the same instance of the service. |
|
1538
|
|
|
* |
|
1539
|
|
|
* @return \Symfony\Bundle\FrameworkBundle\Templating\Loader\FilesystemLoader A Symfony\Bundle\FrameworkBundle\Templating\Loader\FilesystemLoader instance. |
|
1540
|
|
|
*/ |
|
1541
|
|
|
protected function getTemplating_LoaderService() |
|
1542
|
|
|
{ |
|
1543
|
|
|
return $this->services['templating.loader'] = new \Symfony\Bundle\FrameworkBundle\Templating\Loader\FilesystemLoader($this->get('templating.locator')); |
|
1544
|
|
|
} |
|
1545
|
|
|
|
|
1546
|
|
|
/** |
|
1547
|
|
|
* Gets the 'templating.name_parser' service. |
|
1548
|
|
|
* |
|
1549
|
|
|
* This service is shared. |
|
1550
|
|
|
* This method always returns the same instance of the service. |
|
1551
|
|
|
* |
|
1552
|
|
|
* @return \Symfony\Bundle\FrameworkBundle\Templating\TemplateNameParser A Symfony\Bundle\FrameworkBundle\Templating\TemplateNameParser instance. |
|
1553
|
|
|
*/ |
|
1554
|
|
|
protected function getTemplating_NameParserService() |
|
1555
|
|
|
{ |
|
1556
|
|
|
return $this->services['templating.name_parser'] = new \Symfony\Bundle\FrameworkBundle\Templating\TemplateNameParser($this->get('kernel')); |
|
1557
|
|
|
} |
|
1558
|
|
|
|
|
1559
|
|
|
/** |
|
1560
|
|
|
* Gets the 'test.client' service. |
|
1561
|
|
|
* |
|
1562
|
|
|
* @return \Symfony\Bundle\FrameworkBundle\Client A Symfony\Bundle\FrameworkBundle\Client instance. |
|
1563
|
|
|
*/ |
|
1564
|
|
|
protected function getTest_ClientService() |
|
1565
|
|
|
{ |
|
1566
|
|
|
return new \Symfony\Bundle\FrameworkBundle\Client($this->get('kernel'), array(), new \Symfony\Component\BrowserKit\History(), new \Symfony\Component\BrowserKit\CookieJar()); |
|
1567
|
|
|
} |
|
1568
|
|
|
|
|
1569
|
|
|
/** |
|
1570
|
|
|
* Gets the 'test.client.cookiejar' service. |
|
1571
|
|
|
* |
|
1572
|
|
|
* @return \Symfony\Component\BrowserKit\CookieJar A Symfony\Component\BrowserKit\CookieJar instance. |
|
1573
|
|
|
*/ |
|
1574
|
|
|
protected function getTest_Client_CookiejarService() |
|
1575
|
|
|
{ |
|
1576
|
|
|
return new \Symfony\Component\BrowserKit\CookieJar(); |
|
1577
|
|
|
} |
|
1578
|
|
|
|
|
1579
|
|
|
/** |
|
1580
|
|
|
* Gets the 'test.client.history' service. |
|
1581
|
|
|
* |
|
1582
|
|
|
* @return \Symfony\Component\BrowserKit\History A Symfony\Component\BrowserKit\History instance. |
|
1583
|
|
|
*/ |
|
1584
|
|
|
protected function getTest_Client_HistoryService() |
|
1585
|
|
|
{ |
|
1586
|
|
|
return new \Symfony\Component\BrowserKit\History(); |
|
1587
|
|
|
} |
|
1588
|
|
|
|
|
1589
|
|
|
/** |
|
1590
|
|
|
* Gets the 'test.session.listener' service. |
|
1591
|
|
|
* |
|
1592
|
|
|
* This service is shared. |
|
1593
|
|
|
* This method always returns the same instance of the service. |
|
1594
|
|
|
* |
|
1595
|
|
|
* @return \Symfony\Bundle\FrameworkBundle\EventListener\TestSessionListener A Symfony\Bundle\FrameworkBundle\EventListener\TestSessionListener instance. |
|
1596
|
|
|
*/ |
|
1597
|
|
|
protected function getTest_Session_ListenerService() |
|
1598
|
|
|
{ |
|
1599
|
|
|
return $this->services['test.session.listener'] = new \Symfony\Bundle\FrameworkBundle\EventListener\TestSessionListener($this); |
|
1600
|
|
|
} |
|
1601
|
|
|
|
|
1602
|
|
|
/** |
|
1603
|
|
|
* Gets the 'translation.dumper.csv' service. |
|
1604
|
|
|
* |
|
1605
|
|
|
* This service is shared. |
|
1606
|
|
|
* This method always returns the same instance of the service. |
|
1607
|
|
|
* |
|
1608
|
|
|
* @return \Symfony\Component\Translation\Dumper\CsvFileDumper A Symfony\Component\Translation\Dumper\CsvFileDumper instance. |
|
1609
|
|
|
*/ |
|
1610
|
|
|
protected function getTranslation_Dumper_CsvService() |
|
1611
|
|
|
{ |
|
1612
|
|
|
return $this->services['translation.dumper.csv'] = new \Symfony\Component\Translation\Dumper\CsvFileDumper(); |
|
1613
|
|
|
} |
|
1614
|
|
|
|
|
1615
|
|
|
/** |
|
1616
|
|
|
* Gets the 'translation.dumper.ini' service. |
|
1617
|
|
|
* |
|
1618
|
|
|
* This service is shared. |
|
1619
|
|
|
* This method always returns the same instance of the service. |
|
1620
|
|
|
* |
|
1621
|
|
|
* @return \Symfony\Component\Translation\Dumper\IniFileDumper A Symfony\Component\Translation\Dumper\IniFileDumper instance. |
|
1622
|
|
|
*/ |
|
1623
|
|
|
protected function getTranslation_Dumper_IniService() |
|
1624
|
|
|
{ |
|
1625
|
|
|
return $this->services['translation.dumper.ini'] = new \Symfony\Component\Translation\Dumper\IniFileDumper(); |
|
1626
|
|
|
} |
|
1627
|
|
|
|
|
1628
|
|
|
/** |
|
1629
|
|
|
* Gets the 'translation.dumper.json' service. |
|
1630
|
|
|
* |
|
1631
|
|
|
* This service is shared. |
|
1632
|
|
|
* This method always returns the same instance of the service. |
|
1633
|
|
|
* |
|
1634
|
|
|
* @return \Symfony\Component\Translation\Dumper\JsonFileDumper A Symfony\Component\Translation\Dumper\JsonFileDumper instance. |
|
1635
|
|
|
*/ |
|
1636
|
|
|
protected function getTranslation_Dumper_JsonService() |
|
1637
|
|
|
{ |
|
1638
|
|
|
return $this->services['translation.dumper.json'] = new \Symfony\Component\Translation\Dumper\JsonFileDumper(); |
|
1639
|
|
|
} |
|
1640
|
|
|
|
|
1641
|
|
|
/** |
|
1642
|
|
|
* Gets the 'translation.dumper.mo' service. |
|
1643
|
|
|
* |
|
1644
|
|
|
* This service is shared. |
|
1645
|
|
|
* This method always returns the same instance of the service. |
|
1646
|
|
|
* |
|
1647
|
|
|
* @return \Symfony\Component\Translation\Dumper\MoFileDumper A Symfony\Component\Translation\Dumper\MoFileDumper instance. |
|
1648
|
|
|
*/ |
|
1649
|
|
|
protected function getTranslation_Dumper_MoService() |
|
1650
|
|
|
{ |
|
1651
|
|
|
return $this->services['translation.dumper.mo'] = new \Symfony\Component\Translation\Dumper\MoFileDumper(); |
|
1652
|
|
|
} |
|
1653
|
|
|
|
|
1654
|
|
|
/** |
|
1655
|
|
|
* Gets the 'translation.dumper.php' service. |
|
1656
|
|
|
* |
|
1657
|
|
|
* This service is shared. |
|
1658
|
|
|
* This method always returns the same instance of the service. |
|
1659
|
|
|
* |
|
1660
|
|
|
* @return \Symfony\Component\Translation\Dumper\PhpFileDumper A Symfony\Component\Translation\Dumper\PhpFileDumper instance. |
|
1661
|
|
|
*/ |
|
1662
|
|
|
protected function getTranslation_Dumper_PhpService() |
|
1663
|
|
|
{ |
|
1664
|
|
|
return $this->services['translation.dumper.php'] = new \Symfony\Component\Translation\Dumper\PhpFileDumper(); |
|
1665
|
|
|
} |
|
1666
|
|
|
|
|
1667
|
|
|
/** |
|
1668
|
|
|
* Gets the 'translation.dumper.po' service. |
|
1669
|
|
|
* |
|
1670
|
|
|
* This service is shared. |
|
1671
|
|
|
* This method always returns the same instance of the service. |
|
1672
|
|
|
* |
|
1673
|
|
|
* @return \Symfony\Component\Translation\Dumper\PoFileDumper A Symfony\Component\Translation\Dumper\PoFileDumper instance. |
|
1674
|
|
|
*/ |
|
1675
|
|
|
protected function getTranslation_Dumper_PoService() |
|
1676
|
|
|
{ |
|
1677
|
|
|
return $this->services['translation.dumper.po'] = new \Symfony\Component\Translation\Dumper\PoFileDumper(); |
|
1678
|
|
|
} |
|
1679
|
|
|
|
|
1680
|
|
|
/** |
|
1681
|
|
|
* Gets the 'translation.dumper.qt' service. |
|
1682
|
|
|
* |
|
1683
|
|
|
* This service is shared. |
|
1684
|
|
|
* This method always returns the same instance of the service. |
|
1685
|
|
|
* |
|
1686
|
|
|
* @return \Symfony\Component\Translation\Dumper\QtFileDumper A Symfony\Component\Translation\Dumper\QtFileDumper instance. |
|
1687
|
|
|
*/ |
|
1688
|
|
|
protected function getTranslation_Dumper_QtService() |
|
1689
|
|
|
{ |
|
1690
|
|
|
return $this->services['translation.dumper.qt'] = new \Symfony\Component\Translation\Dumper\QtFileDumper(); |
|
1691
|
|
|
} |
|
1692
|
|
|
|
|
1693
|
|
|
/** |
|
1694
|
|
|
* Gets the 'translation.dumper.res' service. |
|
1695
|
|
|
* |
|
1696
|
|
|
* This service is shared. |
|
1697
|
|
|
* This method always returns the same instance of the service. |
|
1698
|
|
|
* |
|
1699
|
|
|
* @return \Symfony\Component\Translation\Dumper\IcuResFileDumper A Symfony\Component\Translation\Dumper\IcuResFileDumper instance. |
|
1700
|
|
|
*/ |
|
1701
|
|
|
protected function getTranslation_Dumper_ResService() |
|
1702
|
|
|
{ |
|
1703
|
|
|
return $this->services['translation.dumper.res'] = new \Symfony\Component\Translation\Dumper\IcuResFileDumper(); |
|
1704
|
|
|
} |
|
1705
|
|
|
|
|
1706
|
|
|
/** |
|
1707
|
|
|
* Gets the 'translation.dumper.xliff' service. |
|
1708
|
|
|
* |
|
1709
|
|
|
* This service is shared. |
|
1710
|
|
|
* This method always returns the same instance of the service. |
|
1711
|
|
|
* |
|
1712
|
|
|
* @return \Symfony\Component\Translation\Dumper\XliffFileDumper A Symfony\Component\Translation\Dumper\XliffFileDumper instance. |
|
1713
|
|
|
*/ |
|
1714
|
|
|
protected function getTranslation_Dumper_XliffService() |
|
1715
|
|
|
{ |
|
1716
|
|
|
return $this->services['translation.dumper.xliff'] = new \Symfony\Component\Translation\Dumper\XliffFileDumper(); |
|
1717
|
|
|
} |
|
1718
|
|
|
|
|
1719
|
|
|
/** |
|
1720
|
|
|
* Gets the 'translation.dumper.yml' service. |
|
1721
|
|
|
* |
|
1722
|
|
|
* This service is shared. |
|
1723
|
|
|
* This method always returns the same instance of the service. |
|
1724
|
|
|
* |
|
1725
|
|
|
* @return \Symfony\Component\Translation\Dumper\YamlFileDumper A Symfony\Component\Translation\Dumper\YamlFileDumper instance. |
|
1726
|
|
|
*/ |
|
1727
|
|
|
protected function getTranslation_Dumper_YmlService() |
|
1728
|
|
|
{ |
|
1729
|
|
|
return $this->services['translation.dumper.yml'] = new \Symfony\Component\Translation\Dumper\YamlFileDumper(); |
|
1730
|
|
|
} |
|
1731
|
|
|
|
|
1732
|
|
|
/** |
|
1733
|
|
|
* Gets the 'translation.extractor' service. |
|
1734
|
|
|
* |
|
1735
|
|
|
* This service is shared. |
|
1736
|
|
|
* This method always returns the same instance of the service. |
|
1737
|
|
|
* |
|
1738
|
|
|
* @return \Symfony\Component\Translation\Extractor\ChainExtractor A Symfony\Component\Translation\Extractor\ChainExtractor instance. |
|
1739
|
|
|
*/ |
|
1740
|
|
|
protected function getTranslation_ExtractorService() |
|
1741
|
|
|
{ |
|
1742
|
|
|
$this->services['translation.extractor'] = $instance = new \Symfony\Component\Translation\Extractor\ChainExtractor(); |
|
1743
|
|
|
|
|
1744
|
|
|
$instance->addExtractor('php', $this->get('translation.extractor.php')); |
|
1745
|
|
|
$instance->addExtractor('twig', $this->get('twig.translation.extractor')); |
|
1746
|
|
|
|
|
1747
|
|
|
return $instance; |
|
1748
|
|
|
} |
|
1749
|
|
|
|
|
1750
|
|
|
/** |
|
1751
|
|
|
* Gets the 'translation.extractor.php' service. |
|
1752
|
|
|
* |
|
1753
|
|
|
* This service is shared. |
|
1754
|
|
|
* This method always returns the same instance of the service. |
|
1755
|
|
|
* |
|
1756
|
|
|
* @return \Symfony\Bundle\FrameworkBundle\Translation\PhpExtractor A Symfony\Bundle\FrameworkBundle\Translation\PhpExtractor instance. |
|
1757
|
|
|
*/ |
|
1758
|
|
|
protected function getTranslation_Extractor_PhpService() |
|
1759
|
|
|
{ |
|
1760
|
|
|
return $this->services['translation.extractor.php'] = new \Symfony\Bundle\FrameworkBundle\Translation\PhpExtractor(); |
|
1761
|
|
|
} |
|
1762
|
|
|
|
|
1763
|
|
|
/** |
|
1764
|
|
|
* Gets the 'translation.loader' service. |
|
1765
|
|
|
* |
|
1766
|
|
|
* This service is shared. |
|
1767
|
|
|
* This method always returns the same instance of the service. |
|
1768
|
|
|
* |
|
1769
|
|
|
* @return \Symfony\Bundle\FrameworkBundle\Translation\TranslationLoader A Symfony\Bundle\FrameworkBundle\Translation\TranslationLoader instance. |
|
1770
|
|
|
*/ |
|
1771
|
|
|
protected function getTranslation_LoaderService() |
|
1772
|
|
|
{ |
|
1773
|
|
|
$a = $this->get('translation.loader.xliff'); |
|
1774
|
|
|
|
|
1775
|
|
|
$this->services['translation.loader'] = $instance = new \Symfony\Bundle\FrameworkBundle\Translation\TranslationLoader(); |
|
1776
|
|
|
|
|
1777
|
|
|
$instance->addLoader('php', $this->get('translation.loader.php')); |
|
1778
|
|
|
$instance->addLoader('yml', $this->get('translation.loader.yml')); |
|
1779
|
|
|
$instance->addLoader('xlf', $a); |
|
1780
|
|
|
$instance->addLoader('xliff', $a); |
|
1781
|
|
|
$instance->addLoader('po', $this->get('translation.loader.po')); |
|
1782
|
|
|
$instance->addLoader('mo', $this->get('translation.loader.mo')); |
|
1783
|
|
|
$instance->addLoader('ts', $this->get('translation.loader.qt')); |
|
1784
|
|
|
$instance->addLoader('csv', $this->get('translation.loader.csv')); |
|
1785
|
|
|
$instance->addLoader('res', $this->get('translation.loader.res')); |
|
1786
|
|
|
$instance->addLoader('dat', $this->get('translation.loader.dat')); |
|
1787
|
|
|
$instance->addLoader('ini', $this->get('translation.loader.ini')); |
|
1788
|
|
|
$instance->addLoader('json', $this->get('translation.loader.json')); |
|
1789
|
|
|
|
|
1790
|
|
|
return $instance; |
|
1791
|
|
|
} |
|
1792
|
|
|
|
|
1793
|
|
|
/** |
|
1794
|
|
|
* Gets the 'translation.loader.csv' service. |
|
1795
|
|
|
* |
|
1796
|
|
|
* This service is shared. |
|
1797
|
|
|
* This method always returns the same instance of the service. |
|
1798
|
|
|
* |
|
1799
|
|
|
* @return \Symfony\Component\Translation\Loader\CsvFileLoader A Symfony\Component\Translation\Loader\CsvFileLoader instance. |
|
1800
|
|
|
*/ |
|
1801
|
|
|
protected function getTranslation_Loader_CsvService() |
|
1802
|
|
|
{ |
|
1803
|
|
|
return $this->services['translation.loader.csv'] = new \Symfony\Component\Translation\Loader\CsvFileLoader(); |
|
1804
|
|
|
} |
|
1805
|
|
|
|
|
1806
|
|
|
/** |
|
1807
|
|
|
* Gets the 'translation.loader.dat' service. |
|
1808
|
|
|
* |
|
1809
|
|
|
* This service is shared. |
|
1810
|
|
|
* This method always returns the same instance of the service. |
|
1811
|
|
|
* |
|
1812
|
|
|
* @return \Symfony\Component\Translation\Loader\IcuDatFileLoader A Symfony\Component\Translation\Loader\IcuDatFileLoader instance. |
|
1813
|
|
|
*/ |
|
1814
|
|
|
protected function getTranslation_Loader_DatService() |
|
1815
|
|
|
{ |
|
1816
|
|
|
return $this->services['translation.loader.dat'] = new \Symfony\Component\Translation\Loader\IcuDatFileLoader(); |
|
1817
|
|
|
} |
|
1818
|
|
|
|
|
1819
|
|
|
/** |
|
1820
|
|
|
* Gets the 'translation.loader.ini' service. |
|
1821
|
|
|
* |
|
1822
|
|
|
* This service is shared. |
|
1823
|
|
|
* This method always returns the same instance of the service. |
|
1824
|
|
|
* |
|
1825
|
|
|
* @return \Symfony\Component\Translation\Loader\IniFileLoader A Symfony\Component\Translation\Loader\IniFileLoader instance. |
|
1826
|
|
|
*/ |
|
1827
|
|
|
protected function getTranslation_Loader_IniService() |
|
1828
|
|
|
{ |
|
1829
|
|
|
return $this->services['translation.loader.ini'] = new \Symfony\Component\Translation\Loader\IniFileLoader(); |
|
1830
|
|
|
} |
|
1831
|
|
|
|
|
1832
|
|
|
/** |
|
1833
|
|
|
* Gets the 'translation.loader.json' service. |
|
1834
|
|
|
* |
|
1835
|
|
|
* This service is shared. |
|
1836
|
|
|
* This method always returns the same instance of the service. |
|
1837
|
|
|
* |
|
1838
|
|
|
* @return \Symfony\Component\Translation\Loader\JsonFileLoader A Symfony\Component\Translation\Loader\JsonFileLoader instance. |
|
1839
|
|
|
*/ |
|
1840
|
|
|
protected function getTranslation_Loader_JsonService() |
|
1841
|
|
|
{ |
|
1842
|
|
|
return $this->services['translation.loader.json'] = new \Symfony\Component\Translation\Loader\JsonFileLoader(); |
|
1843
|
|
|
} |
|
1844
|
|
|
|
|
1845
|
|
|
/** |
|
1846
|
|
|
* Gets the 'translation.loader.mo' service. |
|
1847
|
|
|
* |
|
1848
|
|
|
* This service is shared. |
|
1849
|
|
|
* This method always returns the same instance of the service. |
|
1850
|
|
|
* |
|
1851
|
|
|
* @return \Symfony\Component\Translation\Loader\MoFileLoader A Symfony\Component\Translation\Loader\MoFileLoader instance. |
|
1852
|
|
|
*/ |
|
1853
|
|
|
protected function getTranslation_Loader_MoService() |
|
1854
|
|
|
{ |
|
1855
|
|
|
return $this->services['translation.loader.mo'] = new \Symfony\Component\Translation\Loader\MoFileLoader(); |
|
1856
|
|
|
} |
|
1857
|
|
|
|
|
1858
|
|
|
/** |
|
1859
|
|
|
* Gets the 'translation.loader.php' service. |
|
1860
|
|
|
* |
|
1861
|
|
|
* This service is shared. |
|
1862
|
|
|
* This method always returns the same instance of the service. |
|
1863
|
|
|
* |
|
1864
|
|
|
* @return \Symfony\Component\Translation\Loader\PhpFileLoader A Symfony\Component\Translation\Loader\PhpFileLoader instance. |
|
1865
|
|
|
*/ |
|
1866
|
|
|
protected function getTranslation_Loader_PhpService() |
|
1867
|
|
|
{ |
|
1868
|
|
|
return $this->services['translation.loader.php'] = new \Symfony\Component\Translation\Loader\PhpFileLoader(); |
|
1869
|
|
|
} |
|
1870
|
|
|
|
|
1871
|
|
|
/** |
|
1872
|
|
|
* Gets the 'translation.loader.po' service. |
|
1873
|
|
|
* |
|
1874
|
|
|
* This service is shared. |
|
1875
|
|
|
* This method always returns the same instance of the service. |
|
1876
|
|
|
* |
|
1877
|
|
|
* @return \Symfony\Component\Translation\Loader\PoFileLoader A Symfony\Component\Translation\Loader\PoFileLoader instance. |
|
1878
|
|
|
*/ |
|
1879
|
|
|
protected function getTranslation_Loader_PoService() |
|
1880
|
|
|
{ |
|
1881
|
|
|
return $this->services['translation.loader.po'] = new \Symfony\Component\Translation\Loader\PoFileLoader(); |
|
1882
|
|
|
} |
|
1883
|
|
|
|
|
1884
|
|
|
/** |
|
1885
|
|
|
* Gets the 'translation.loader.qt' service. |
|
1886
|
|
|
* |
|
1887
|
|
|
* This service is shared. |
|
1888
|
|
|
* This method always returns the same instance of the service. |
|
1889
|
|
|
* |
|
1890
|
|
|
* @return \Symfony\Component\Translation\Loader\QtFileLoader A Symfony\Component\Translation\Loader\QtFileLoader instance. |
|
1891
|
|
|
*/ |
|
1892
|
|
|
protected function getTranslation_Loader_QtService() |
|
1893
|
|
|
{ |
|
1894
|
|
|
return $this->services['translation.loader.qt'] = new \Symfony\Component\Translation\Loader\QtFileLoader(); |
|
1895
|
|
|
} |
|
1896
|
|
|
|
|
1897
|
|
|
/** |
|
1898
|
|
|
* Gets the 'translation.loader.res' service. |
|
1899
|
|
|
* |
|
1900
|
|
|
* This service is shared. |
|
1901
|
|
|
* This method always returns the same instance of the service. |
|
1902
|
|
|
* |
|
1903
|
|
|
* @return \Symfony\Component\Translation\Loader\IcuResFileLoader A Symfony\Component\Translation\Loader\IcuResFileLoader instance. |
|
1904
|
|
|
*/ |
|
1905
|
|
|
protected function getTranslation_Loader_ResService() |
|
1906
|
|
|
{ |
|
1907
|
|
|
return $this->services['translation.loader.res'] = new \Symfony\Component\Translation\Loader\IcuResFileLoader(); |
|
1908
|
|
|
} |
|
1909
|
|
|
|
|
1910
|
|
|
/** |
|
1911
|
|
|
* Gets the 'translation.loader.xliff' service. |
|
1912
|
|
|
* |
|
1913
|
|
|
* This service is shared. |
|
1914
|
|
|
* This method always returns the same instance of the service. |
|
1915
|
|
|
* |
|
1916
|
|
|
* @return \Symfony\Component\Translation\Loader\XliffFileLoader A Symfony\Component\Translation\Loader\XliffFileLoader instance. |
|
1917
|
|
|
*/ |
|
1918
|
|
|
protected function getTranslation_Loader_XliffService() |
|
1919
|
|
|
{ |
|
1920
|
|
|
return $this->services['translation.loader.xliff'] = new \Symfony\Component\Translation\Loader\XliffFileLoader(); |
|
1921
|
|
|
} |
|
1922
|
|
|
|
|
1923
|
|
|
/** |
|
1924
|
|
|
* Gets the 'translation.loader.yml' service. |
|
1925
|
|
|
* |
|
1926
|
|
|
* This service is shared. |
|
1927
|
|
|
* This method always returns the same instance of the service. |
|
1928
|
|
|
* |
|
1929
|
|
|
* @return \Symfony\Component\Translation\Loader\YamlFileLoader A Symfony\Component\Translation\Loader\YamlFileLoader instance. |
|
1930
|
|
|
*/ |
|
1931
|
|
|
protected function getTranslation_Loader_YmlService() |
|
1932
|
|
|
{ |
|
1933
|
|
|
return $this->services['translation.loader.yml'] = new \Symfony\Component\Translation\Loader\YamlFileLoader(); |
|
1934
|
|
|
} |
|
1935
|
|
|
|
|
1936
|
|
|
/** |
|
1937
|
|
|
* Gets the 'translation.writer' service. |
|
1938
|
|
|
* |
|
1939
|
|
|
* This service is shared. |
|
1940
|
|
|
* This method always returns the same instance of the service. |
|
1941
|
|
|
* |
|
1942
|
|
|
* @return \Symfony\Component\Translation\Writer\TranslationWriter A Symfony\Component\Translation\Writer\TranslationWriter instance. |
|
1943
|
|
|
*/ |
|
1944
|
|
|
protected function getTranslation_WriterService() |
|
1945
|
|
|
{ |
|
1946
|
|
|
$this->services['translation.writer'] = $instance = new \Symfony\Component\Translation\Writer\TranslationWriter(); |
|
1947
|
|
|
|
|
1948
|
|
|
$instance->addDumper('php', $this->get('translation.dumper.php')); |
|
1949
|
|
|
$instance->addDumper('xlf', $this->get('translation.dumper.xliff')); |
|
1950
|
|
|
$instance->addDumper('po', $this->get('translation.dumper.po')); |
|
1951
|
|
|
$instance->addDumper('mo', $this->get('translation.dumper.mo')); |
|
1952
|
|
|
$instance->addDumper('yml', $this->get('translation.dumper.yml')); |
|
1953
|
|
|
$instance->addDumper('ts', $this->get('translation.dumper.qt')); |
|
1954
|
|
|
$instance->addDumper('csv', $this->get('translation.dumper.csv')); |
|
1955
|
|
|
$instance->addDumper('ini', $this->get('translation.dumper.ini')); |
|
1956
|
|
|
$instance->addDumper('json', $this->get('translation.dumper.json')); |
|
1957
|
|
|
$instance->addDumper('res', $this->get('translation.dumper.res')); |
|
1958
|
|
|
|
|
1959
|
|
|
return $instance; |
|
1960
|
|
|
} |
|
1961
|
|
|
|
|
1962
|
|
|
/** |
|
1963
|
|
|
* Gets the 'translator' service. |
|
1964
|
|
|
* |
|
1965
|
|
|
* This service is shared. |
|
1966
|
|
|
* This method always returns the same instance of the service. |
|
1967
|
|
|
* |
|
1968
|
|
|
* @return \Symfony\Component\Translation\IdentityTranslator A Symfony\Component\Translation\IdentityTranslator instance. |
|
1969
|
|
|
*/ |
|
1970
|
|
|
protected function getTranslatorService() |
|
1971
|
|
|
{ |
|
1972
|
|
|
return $this->services['translator'] = new \Symfony\Component\Translation\IdentityTranslator($this->get('translator.selector')); |
|
1973
|
|
|
} |
|
1974
|
|
|
|
|
1975
|
|
|
/** |
|
1976
|
|
|
* Gets the 'translator.default' service. |
|
1977
|
|
|
* |
|
1978
|
|
|
* This service is shared. |
|
1979
|
|
|
* This method always returns the same instance of the service. |
|
1980
|
|
|
* |
|
1981
|
|
|
* @return \Symfony\Bundle\FrameworkBundle\Translation\Translator A Symfony\Bundle\FrameworkBundle\Translation\Translator instance. |
|
1982
|
|
|
*/ |
|
1983
|
|
|
protected function getTranslator_DefaultService() |
|
1984
|
|
|
{ |
|
1985
|
|
|
$this->services['translator.default'] = $instance = new \Symfony\Bundle\FrameworkBundle\Translation\Translator($this, $this->get('translator.selector'), array('translation.loader.php' => array(0 => 'php'), 'translation.loader.yml' => array(0 => 'yml'), 'translation.loader.xliff' => array(0 => 'xlf', 1 => 'xliff'), 'translation.loader.po' => array(0 => 'po'), 'translation.loader.mo' => array(0 => 'mo'), 'translation.loader.qt' => array(0 => 'ts'), 'translation.loader.csv' => array(0 => 'csv'), 'translation.loader.res' => array(0 => 'res'), 'translation.loader.dat' => array(0 => 'dat'), 'translation.loader.ini' => array(0 => 'ini'), 'translation.loader.json' => array(0 => 'json')), array('cache_dir' => (__DIR__.'/translations'), 'debug' => true), array()); |
|
|
|
|
|
|
1986
|
|
|
|
|
1987
|
|
|
$instance->setConfigCacheFactory($this->get('config_cache_factory')); |
|
1988
|
|
|
|
|
1989
|
|
|
return $instance; |
|
1990
|
|
|
} |
|
1991
|
|
|
|
|
1992
|
|
|
/** |
|
1993
|
|
|
* Gets the 'translator_listener' service. |
|
1994
|
|
|
* |
|
1995
|
|
|
* This service is shared. |
|
1996
|
|
|
* This method always returns the same instance of the service. |
|
1997
|
|
|
* |
|
1998
|
|
|
* @return \Symfony\Component\HttpKernel\EventListener\TranslatorListener A Symfony\Component\HttpKernel\EventListener\TranslatorListener instance. |
|
1999
|
|
|
*/ |
|
2000
|
|
|
protected function getTranslatorListenerService() |
|
2001
|
|
|
{ |
|
2002
|
|
|
return $this->services['translator_listener'] = new \Symfony\Component\HttpKernel\EventListener\TranslatorListener($this->get('translator'), $this->get('request_stack')); |
|
2003
|
|
|
} |
|
2004
|
|
|
|
|
2005
|
|
|
/** |
|
2006
|
|
|
* Gets the 'twig' service. |
|
2007
|
|
|
* |
|
2008
|
|
|
* This service is shared. |
|
2009
|
|
|
* This method always returns the same instance of the service. |
|
2010
|
|
|
* |
|
2011
|
|
|
* @return \Twig_Environment A Twig_Environment instance. |
|
2012
|
|
|
*/ |
|
2013
|
|
|
protected function getTwigService() |
|
2014
|
|
|
{ |
|
2015
|
|
|
$a = $this->get('debug.stopwatch', ContainerInterface::NULL_ON_INVALID_REFERENCE); |
|
2016
|
|
|
$b = $this->get('request_stack'); |
|
2017
|
|
|
$c = $this->get('router.request_context', ContainerInterface::NULL_ON_INVALID_REFERENCE); |
|
2018
|
|
|
$d = $this->get('fragment.handler'); |
|
2019
|
|
|
|
|
2020
|
|
|
$e = new \Symfony\Bridge\Twig\Extension\HttpFoundationExtension($b, $c); |
|
2021
|
|
|
|
|
2022
|
|
|
$f = new \Symfony\Bridge\Twig\AppVariable(); |
|
2023
|
|
|
$f->setEnvironment('test'); |
|
2024
|
|
|
$f->setDebug(true); |
|
2025
|
|
|
if ($this->has('request_stack')) { |
|
2026
|
|
|
$f->setRequestStack($b); |
|
2027
|
|
|
} |
|
2028
|
|
|
$f->setContainer($this); |
|
|
|
|
|
|
2029
|
|
|
|
|
2030
|
|
|
$this->services['twig'] = $instance = new \Twig_Environment($this->get('twig.loader'), array('exception_controller' => 'twig.controller.exception:showAction', 'form_themes' => array(0 => 'form_div_layout.html.twig'), 'autoescape' => 'filename', 'cache' => (__DIR__.'/twig'), 'charset' => 'UTF-8', 'debug' => true, 'paths' => array(), 'date' => array('format' => 'F j, Y H:i', 'interval_format' => '%d days', 'timezone' => NULL), 'number_format' => array('decimals' => 0, 'decimal_point' => '.', 'thousands_separator' => ','))); |
|
2031
|
|
|
|
|
2032
|
|
|
$instance->addExtension(new \Symfony\Bridge\Twig\Extension\ProfilerExtension($this->get('twig.profile'), $a)); |
|
2033
|
|
|
$instance->addExtension(new \Symfony\Bridge\Twig\Extension\TranslationExtension($this->get('translator'))); |
|
2034
|
|
|
$instance->addExtension(new \Symfony\Bridge\Twig\Extension\AssetExtension($this->get('assets.packages'), $e)); |
|
2035
|
|
|
$instance->addExtension(new \Symfony\Bundle\TwigBundle\Extension\ActionsExtension($d)); |
|
|
|
|
|
|
2036
|
|
|
$instance->addExtension(new \Symfony\Bridge\Twig\Extension\CodeExtension(NULL, $this->targetDirs[2], 'UTF-8')); |
|
2037
|
|
|
$instance->addExtension(new \Symfony\Bridge\Twig\Extension\RoutingExtension($this->get('router'))); |
|
2038
|
|
|
$instance->addExtension(new \Symfony\Bridge\Twig\Extension\YamlExtension()); |
|
2039
|
|
|
$instance->addExtension(new \Symfony\Bridge\Twig\Extension\StopwatchExtension($a, true)); |
|
2040
|
|
|
$instance->addExtension(new \Symfony\Bridge\Twig\Extension\ExpressionExtension()); |
|
2041
|
|
|
$instance->addExtension(new \Symfony\Bridge\Twig\Extension\HttpKernelExtension($d)); |
|
2042
|
|
|
$instance->addExtension($e); |
|
2043
|
|
|
$instance->addExtension(new \Symfony\Bridge\Twig\Extension\FormExtension(new \Symfony\Bridge\Twig\Form\TwigRenderer(new \Symfony\Bridge\Twig\Form\TwigRendererEngine(array(0 => 'form_div_layout.html.twig')), $this->get('security.csrf.token_manager', ContainerInterface::NULL_ON_INVALID_REFERENCE)))); |
|
2044
|
|
|
$instance->addExtension(new \Twig_Extension_Debug()); |
|
2045
|
|
|
$instance->addGlobal('app', $f); |
|
2046
|
|
|
call_user_func(array(new \Symfony\Bundle\TwigBundle\DependencyInjection\Configurator\EnvironmentConfigurator('F j, Y H:i', '%d days', NULL, 0, '.', ','), 'configure'), $instance); |
|
2047
|
|
|
|
|
2048
|
|
|
return $instance; |
|
2049
|
|
|
} |
|
2050
|
|
|
|
|
2051
|
|
|
/** |
|
2052
|
|
|
* Gets the 'twig.controller.exception' service. |
|
2053
|
|
|
* |
|
2054
|
|
|
* This service is shared. |
|
2055
|
|
|
* This method always returns the same instance of the service. |
|
2056
|
|
|
* |
|
2057
|
|
|
* @return \Symfony\Bundle\TwigBundle\Controller\ExceptionController A Symfony\Bundle\TwigBundle\Controller\ExceptionController instance. |
|
2058
|
|
|
*/ |
|
2059
|
|
|
protected function getTwig_Controller_ExceptionService() |
|
2060
|
|
|
{ |
|
2061
|
|
|
return $this->services['twig.controller.exception'] = new \Symfony\Bundle\TwigBundle\Controller\ExceptionController($this->get('twig'), true); |
|
2062
|
|
|
} |
|
2063
|
|
|
|
|
2064
|
|
|
/** |
|
2065
|
|
|
* Gets the 'twig.controller.preview_error' service. |
|
2066
|
|
|
* |
|
2067
|
|
|
* This service is shared. |
|
2068
|
|
|
* This method always returns the same instance of the service. |
|
2069
|
|
|
* |
|
2070
|
|
|
* @return \Symfony\Bundle\TwigBundle\Controller\PreviewErrorController A Symfony\Bundle\TwigBundle\Controller\PreviewErrorController instance. |
|
2071
|
|
|
*/ |
|
2072
|
|
|
protected function getTwig_Controller_PreviewErrorService() |
|
2073
|
|
|
{ |
|
2074
|
|
|
return $this->services['twig.controller.preview_error'] = new \Symfony\Bundle\TwigBundle\Controller\PreviewErrorController($this->get('http_kernel'), 'twig.controller.exception:showAction'); |
|
2075
|
|
|
} |
|
2076
|
|
|
|
|
2077
|
|
|
/** |
|
2078
|
|
|
* Gets the 'twig.exception_listener' service. |
|
2079
|
|
|
* |
|
2080
|
|
|
* This service is shared. |
|
2081
|
|
|
* This method always returns the same instance of the service. |
|
2082
|
|
|
* |
|
2083
|
|
|
* @return \Symfony\Component\HttpKernel\EventListener\ExceptionListener A Symfony\Component\HttpKernel\EventListener\ExceptionListener instance. |
|
2084
|
|
|
*/ |
|
2085
|
|
|
protected function getTwig_ExceptionListenerService() |
|
2086
|
|
|
{ |
|
2087
|
|
|
return $this->services['twig.exception_listener'] = new \Symfony\Component\HttpKernel\EventListener\ExceptionListener('twig.controller.exception:showAction', $this->get('monolog.logger.request', ContainerInterface::NULL_ON_INVALID_REFERENCE)); |
|
2088
|
|
|
} |
|
2089
|
|
|
|
|
2090
|
|
|
/** |
|
2091
|
|
|
* Gets the 'twig.loader' service. |
|
2092
|
|
|
* |
|
2093
|
|
|
* This service is shared. |
|
2094
|
|
|
* This method always returns the same instance of the service. |
|
2095
|
|
|
* |
|
2096
|
|
|
* @return \Symfony\Bundle\TwigBundle\Loader\FilesystemLoader A Symfony\Bundle\TwigBundle\Loader\FilesystemLoader instance. |
|
2097
|
|
|
*/ |
|
2098
|
|
|
protected function getTwig_LoaderService() |
|
2099
|
|
|
{ |
|
2100
|
|
|
$this->services['twig.loader'] = $instance = new \Symfony\Bundle\TwigBundle\Loader\FilesystemLoader($this->get('templating.locator'), $this->get('templating.name_parser')); |
|
2101
|
|
|
|
|
2102
|
|
|
$instance->addPath(($this->targetDirs[4].'/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/views'), 'Framework'); |
|
2103
|
|
|
$instance->addPath(($this->targetDirs[4].'/vendor/symfony/symfony/src/Symfony/Bundle/SecurityBundle/Resources/views'), 'Security'); |
|
2104
|
|
|
$instance->addPath(($this->targetDirs[4].'/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/Resources/views'), 'Twig'); |
|
2105
|
|
|
$instance->addPath(($this->targetDirs[4].'/vendor/symfony/symfony/src/Symfony/Bridge/Twig/Resources/views/Form')); |
|
2106
|
|
|
|
|
2107
|
|
|
return $instance; |
|
2108
|
|
|
} |
|
2109
|
|
|
|
|
2110
|
|
|
/** |
|
2111
|
|
|
* Gets the 'twig.profile' service. |
|
2112
|
|
|
* |
|
2113
|
|
|
* This service is shared. |
|
2114
|
|
|
* This method always returns the same instance of the service. |
|
2115
|
|
|
* |
|
2116
|
|
|
* @return \Twig_Profiler_Profile A Twig_Profiler_Profile instance. |
|
2117
|
|
|
*/ |
|
2118
|
|
|
protected function getTwig_ProfileService() |
|
2119
|
|
|
{ |
|
2120
|
|
|
return $this->services['twig.profile'] = new \Twig_Profiler_Profile(); |
|
2121
|
|
|
} |
|
2122
|
|
|
|
|
2123
|
|
|
/** |
|
2124
|
|
|
* Gets the 'twig.translation.extractor' service. |
|
2125
|
|
|
* |
|
2126
|
|
|
* This service is shared. |
|
2127
|
|
|
* This method always returns the same instance of the service. |
|
2128
|
|
|
* |
|
2129
|
|
|
* @return \Symfony\Bridge\Twig\Translation\TwigExtractor A Symfony\Bridge\Twig\Translation\TwigExtractor instance. |
|
2130
|
|
|
*/ |
|
2131
|
|
|
protected function getTwig_Translation_ExtractorService() |
|
2132
|
|
|
{ |
|
2133
|
|
|
return $this->services['twig.translation.extractor'] = new \Symfony\Bridge\Twig\Translation\TwigExtractor($this->get('twig')); |
|
2134
|
|
|
} |
|
2135
|
|
|
|
|
2136
|
|
|
/** |
|
2137
|
|
|
* Gets the 'uri_signer' service. |
|
2138
|
|
|
* |
|
2139
|
|
|
* This service is shared. |
|
2140
|
|
|
* This method always returns the same instance of the service. |
|
2141
|
|
|
* |
|
2142
|
|
|
* @return \Symfony\Component\HttpKernel\UriSigner A Symfony\Component\HttpKernel\UriSigner instance. |
|
2143
|
|
|
*/ |
|
2144
|
|
|
protected function getUriSignerService() |
|
2145
|
|
|
{ |
|
2146
|
|
|
return $this->services['uri_signer'] = new \Symfony\Component\HttpKernel\UriSigner('secret'); |
|
2147
|
|
|
} |
|
2148
|
|
|
|
|
2149
|
|
|
/** |
|
2150
|
|
|
* Gets the 'validator' service. |
|
2151
|
|
|
* |
|
2152
|
|
|
* This service is shared. |
|
2153
|
|
|
* This method always returns the same instance of the service. |
|
2154
|
|
|
* |
|
2155
|
|
|
* @return \Symfony\Component\Validator\Validator\ValidatorInterface A Symfony\Component\Validator\Validator\ValidatorInterface instance. |
|
2156
|
|
|
*/ |
|
2157
|
|
|
protected function getValidatorService() |
|
2158
|
|
|
{ |
|
2159
|
|
|
return $this->services['validator'] = $this->get('validator.builder')->getValidator(); |
|
2160
|
|
|
} |
|
2161
|
|
|
|
|
2162
|
|
|
/** |
|
2163
|
|
|
* Gets the 'validator.builder' service. |
|
2164
|
|
|
* |
|
2165
|
|
|
* This service is shared. |
|
2166
|
|
|
* This method always returns the same instance of the service. |
|
2167
|
|
|
* |
|
2168
|
|
|
* @return \Symfony\Component\Validator\ValidatorBuilderInterface A Symfony\Component\Validator\ValidatorBuilderInterface instance. |
|
2169
|
|
|
*/ |
|
2170
|
|
|
protected function getValidator_BuilderService() |
|
2171
|
|
|
{ |
|
2172
|
|
|
$this->services['validator.builder'] = $instance = \Symfony\Component\Validator\Validation::createValidatorBuilder(); |
|
2173
|
|
|
|
|
2174
|
|
|
$instance->setConstraintValidatorFactory(new \Symfony\Bundle\FrameworkBundle\Validator\ConstraintValidatorFactory($this, array('validator.expression' => 'validator.expression', 'Symfony\\Component\\Validator\\Constraints\\ExpressionValidator' => 'validator.expression', 'Symfony\\Component\\Validator\\Constraints\\EmailValidator' => 'validator.email'))); |
|
2175
|
|
|
$instance->setTranslator($this->get('translator')); |
|
2176
|
|
|
$instance->setTranslationDomain('validators'); |
|
2177
|
|
|
$instance->addXmlMappings(array(0 => ($this->targetDirs[4].'/vendor/symfony/symfony/src/Symfony/Component/Form/Resources/config/validation.xml'))); |
|
2178
|
|
|
$instance->enableAnnotationMapping($this->get('annotation_reader')); |
|
2179
|
|
|
$instance->addMethodMapping('loadValidatorMetadata'); |
|
2180
|
|
|
$instance->addObjectInitializers(array()); |
|
2181
|
|
|
|
|
2182
|
|
|
return $instance; |
|
2183
|
|
|
} |
|
2184
|
|
|
|
|
2185
|
|
|
/** |
|
2186
|
|
|
* Gets the 'validator.email' service. |
|
2187
|
|
|
* |
|
2188
|
|
|
* This service is shared. |
|
2189
|
|
|
* This method always returns the same instance of the service. |
|
2190
|
|
|
* |
|
2191
|
|
|
* @return \Symfony\Component\Validator\Constraints\EmailValidator A Symfony\Component\Validator\Constraints\EmailValidator instance. |
|
2192
|
|
|
*/ |
|
2193
|
|
|
protected function getValidator_EmailService() |
|
2194
|
|
|
{ |
|
2195
|
|
|
return $this->services['validator.email'] = new \Symfony\Component\Validator\Constraints\EmailValidator(false); |
|
2196
|
|
|
} |
|
2197
|
|
|
|
|
2198
|
|
|
/** |
|
2199
|
|
|
* Gets the 'validator.expression' service. |
|
2200
|
|
|
* |
|
2201
|
|
|
* This service is shared. |
|
2202
|
|
|
* This method always returns the same instance of the service. |
|
2203
|
|
|
* |
|
2204
|
|
|
* @return \Symfony\Component\Validator\Constraints\ExpressionValidator A Symfony\Component\Validator\Constraints\ExpressionValidator instance. |
|
2205
|
|
|
*/ |
|
2206
|
|
|
protected function getValidator_ExpressionService() |
|
2207
|
|
|
{ |
|
2208
|
|
|
return $this->services['validator.expression'] = new \Symfony\Component\Validator\Constraints\ExpressionValidator($this->get('property_accessor')); |
|
2209
|
|
|
} |
|
2210
|
|
|
|
|
2211
|
|
|
/** |
|
2212
|
|
|
* Gets the 'controller_name_converter' service. |
|
2213
|
|
|
* |
|
2214
|
|
|
* This service is shared. |
|
2215
|
|
|
* This method always returns the same instance of the service. |
|
2216
|
|
|
* |
|
2217
|
|
|
* This service is private. |
|
2218
|
|
|
* If you want to be able to request this service from the container directly, |
|
2219
|
|
|
* make it public, otherwise you might end up with broken code. |
|
2220
|
|
|
* |
|
2221
|
|
|
* @return \Symfony\Bundle\FrameworkBundle\Controller\ControllerNameParser A Symfony\Bundle\FrameworkBundle\Controller\ControllerNameParser instance. |
|
2222
|
|
|
*/ |
|
2223
|
|
|
protected function getControllerNameConverterService() |
|
2224
|
|
|
{ |
|
2225
|
|
|
return $this->services['controller_name_converter'] = new \Symfony\Bundle\FrameworkBundle\Controller\ControllerNameParser($this->get('kernel')); |
|
2226
|
|
|
} |
|
2227
|
|
|
|
|
2228
|
|
|
/** |
|
2229
|
|
|
* Gets the 'router.request_context' service. |
|
2230
|
|
|
* |
|
2231
|
|
|
* This service is shared. |
|
2232
|
|
|
* This method always returns the same instance of the service. |
|
2233
|
|
|
* |
|
2234
|
|
|
* This service is private. |
|
2235
|
|
|
* If you want to be able to request this service from the container directly, |
|
2236
|
|
|
* make it public, otherwise you might end up with broken code. |
|
2237
|
|
|
* |
|
2238
|
|
|
* @return \Symfony\Component\Routing\RequestContext A Symfony\Component\Routing\RequestContext instance. |
|
2239
|
|
|
*/ |
|
2240
|
|
|
protected function getRouter_RequestContextService() |
|
2241
|
|
|
{ |
|
2242
|
|
|
return $this->services['router.request_context'] = new \Symfony\Component\Routing\RequestContext('', 'GET', 'localhost', 'http', 80, 443); |
|
2243
|
|
|
} |
|
2244
|
|
|
|
|
2245
|
|
|
/** |
|
2246
|
|
|
* Gets the 'session.storage.metadata_bag' service. |
|
2247
|
|
|
* |
|
2248
|
|
|
* This service is shared. |
|
2249
|
|
|
* This method always returns the same instance of the service. |
|
2250
|
|
|
* |
|
2251
|
|
|
* This service is private. |
|
2252
|
|
|
* If you want to be able to request this service from the container directly, |
|
2253
|
|
|
* make it public, otherwise you might end up with broken code. |
|
2254
|
|
|
* |
|
2255
|
|
|
* @return \Symfony\Component\HttpFoundation\Session\Storage\MetadataBag A Symfony\Component\HttpFoundation\Session\Storage\MetadataBag instance. |
|
2256
|
|
|
*/ |
|
2257
|
|
|
protected function getSession_Storage_MetadataBagService() |
|
2258
|
|
|
{ |
|
2259
|
|
|
return $this->services['session.storage.metadata_bag'] = new \Symfony\Component\HttpFoundation\Session\Storage\MetadataBag('_sf2_meta', '0'); |
|
2260
|
|
|
} |
|
2261
|
|
|
|
|
2262
|
|
|
/** |
|
2263
|
|
|
* Gets the 'templating.locator' service. |
|
2264
|
|
|
* |
|
2265
|
|
|
* This service is shared. |
|
2266
|
|
|
* This method always returns the same instance of the service. |
|
2267
|
|
|
* |
|
2268
|
|
|
* This service is private. |
|
2269
|
|
|
* If you want to be able to request this service from the container directly, |
|
2270
|
|
|
* make it public, otherwise you might end up with broken code. |
|
2271
|
|
|
* |
|
2272
|
|
|
* @return \Symfony\Bundle\FrameworkBundle\Templating\Loader\TemplateLocator A Symfony\Bundle\FrameworkBundle\Templating\Loader\TemplateLocator instance. |
|
2273
|
|
|
*/ |
|
2274
|
|
|
protected function getTemplating_LocatorService() |
|
2275
|
|
|
{ |
|
2276
|
|
|
return $this->services['templating.locator'] = new \Symfony\Bundle\FrameworkBundle\Templating\Loader\TemplateLocator($this->get('file_locator'), __DIR__); |
|
2277
|
|
|
} |
|
2278
|
|
|
|
|
2279
|
|
|
/** |
|
2280
|
|
|
* Gets the 'translator.selector' service. |
|
2281
|
|
|
* |
|
2282
|
|
|
* This service is shared. |
|
2283
|
|
|
* This method always returns the same instance of the service. |
|
2284
|
|
|
* |
|
2285
|
|
|
* This service is private. |
|
2286
|
|
|
* If you want to be able to request this service from the container directly, |
|
2287
|
|
|
* make it public, otherwise you might end up with broken code. |
|
2288
|
|
|
* |
|
2289
|
|
|
* @return \Symfony\Component\Translation\MessageSelector A Symfony\Component\Translation\MessageSelector instance. |
|
2290
|
|
|
*/ |
|
2291
|
|
|
protected function getTranslator_SelectorService() |
|
2292
|
|
|
{ |
|
2293
|
|
|
return $this->services['translator.selector'] = new \Symfony\Component\Translation\MessageSelector(); |
|
2294
|
|
|
} |
|
2295
|
|
|
|
|
2296
|
|
|
/** |
|
2297
|
|
|
* {@inheritdoc} |
|
2298
|
|
|
*/ |
|
2299
|
|
|
public function getParameter($name) |
|
2300
|
|
|
{ |
|
2301
|
|
|
$name = strtolower($name); |
|
2302
|
|
|
|
|
2303
|
|
|
if (!(isset($this->parameters[$name]) || array_key_exists($name, $this->parameters))) { |
|
2304
|
|
|
throw new InvalidArgumentException(sprintf('The parameter "%s" must be defined.', $name)); |
|
2305
|
|
|
} |
|
2306
|
|
|
|
|
2307
|
|
|
return $this->parameters[$name]; |
|
2308
|
|
|
} |
|
2309
|
|
|
|
|
2310
|
|
|
/** |
|
2311
|
|
|
* {@inheritdoc} |
|
2312
|
|
|
*/ |
|
2313
|
|
|
public function hasParameter($name) |
|
2314
|
|
|
{ |
|
2315
|
|
|
$name = strtolower($name); |
|
2316
|
|
|
|
|
2317
|
|
|
return isset($this->parameters[$name]) || array_key_exists($name, $this->parameters); |
|
2318
|
|
|
} |
|
2319
|
|
|
|
|
2320
|
|
|
/** |
|
2321
|
|
|
* {@inheritdoc} |
|
2322
|
|
|
*/ |
|
2323
|
|
|
public function setParameter($name, $value) |
|
2324
|
|
|
{ |
|
2325
|
|
|
throw new LogicException('Impossible to call set() on a frozen ParameterBag.'); |
|
2326
|
|
|
} |
|
2327
|
|
|
|
|
2328
|
|
|
/** |
|
2329
|
|
|
* {@inheritdoc} |
|
2330
|
|
|
*/ |
|
2331
|
|
|
public function getParameterBag() |
|
2332
|
|
|
{ |
|
2333
|
|
|
if (null === $this->parameterBag) { |
|
2334
|
|
|
$this->parameterBag = new FrozenParameterBag($this->parameters); |
|
2335
|
|
|
} |
|
2336
|
|
|
|
|
2337
|
|
|
return $this->parameterBag; |
|
2338
|
|
|
} |
|
2339
|
|
|
|
|
2340
|
|
|
/** |
|
2341
|
|
|
* Gets the default parameters. |
|
2342
|
|
|
* |
|
2343
|
|
|
* @return array An array of the default parameters |
|
2344
|
|
|
*/ |
|
2345
|
|
|
protected function getDefaultParameters() |
|
2346
|
|
|
{ |
|
2347
|
|
|
return array( |
|
2348
|
|
|
'kernel.root_dir' => $this->targetDirs[2], |
|
2349
|
|
|
'kernel.environment' => 'test', |
|
2350
|
|
|
'kernel.debug' => true, |
|
2351
|
|
|
'kernel.name' => 'App', |
|
2352
|
|
|
'kernel.cache_dir' => __DIR__, |
|
2353
|
|
|
'kernel.logs_dir' => ($this->targetDirs[2].'/logs'), |
|
2354
|
|
|
'kernel.bundles' => array( |
|
2355
|
|
|
'FrameworkBundle' => 'Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle', |
|
2356
|
|
|
'SecurityBundle' => 'Symfony\\Bundle\\SecurityBundle\\SecurityBundle', |
|
2357
|
|
|
'TwigBundle' => 'Symfony\\Bundle\\TwigBundle\\TwigBundle', |
|
2358
|
|
|
'MonologBundle' => 'Symfony\\Bundle\\MonologBundle\\MonologBundle', |
|
2359
|
|
|
'ItkgTranslationBundle' => 'Itkg\\TranslationBundle\\ItkgTranslationBundle', |
|
2360
|
|
|
), |
|
2361
|
|
|
'kernel.charset' => 'UTF-8', |
|
2362
|
|
|
'kernel.container_class' => 'AppTestDebugProjectContainer', |
|
2363
|
|
|
'controller_resolver.class' => 'Symfony\\Bundle\\FrameworkBundle\\Controller\\ControllerResolver', |
|
2364
|
|
|
'controller_name_converter.class' => 'Symfony\\Bundle\\FrameworkBundle\\Controller\\ControllerNameParser', |
|
2365
|
|
|
'response_listener.class' => 'Symfony\\Component\\HttpKernel\\EventListener\\ResponseListener', |
|
2366
|
|
|
'streamed_response_listener.class' => 'Symfony\\Component\\HttpKernel\\EventListener\\StreamedResponseListener', |
|
2367
|
|
|
'locale_listener.class' => 'Symfony\\Component\\HttpKernel\\EventListener\\LocaleListener', |
|
2368
|
|
|
'event_dispatcher.class' => 'Symfony\\Component\\EventDispatcher\\ContainerAwareEventDispatcher', |
|
2369
|
|
|
'http_kernel.class' => 'Symfony\\Component\\HttpKernel\\DependencyInjection\\ContainerAwareHttpKernel', |
|
2370
|
|
|
'filesystem.class' => 'Symfony\\Component\\Filesystem\\Filesystem', |
|
2371
|
|
|
'cache_warmer.class' => 'Symfony\\Component\\HttpKernel\\CacheWarmer\\CacheWarmerAggregate', |
|
2372
|
|
|
'cache_clearer.class' => 'Symfony\\Component\\HttpKernel\\CacheClearer\\ChainCacheClearer', |
|
2373
|
|
|
'file_locator.class' => 'Symfony\\Component\\HttpKernel\\Config\\FileLocator', |
|
2374
|
|
|
'uri_signer.class' => 'Symfony\\Component\\HttpKernel\\UriSigner', |
|
2375
|
|
|
'request_stack.class' => 'Symfony\\Component\\HttpFoundation\\RequestStack', |
|
2376
|
|
|
'fragment.handler.class' => 'Symfony\\Component\\HttpKernel\\DependencyInjection\\LazyLoadingFragmentHandler', |
|
2377
|
|
|
'fragment.renderer.inline.class' => 'Symfony\\Component\\HttpKernel\\Fragment\\InlineFragmentRenderer', |
|
2378
|
|
|
'fragment.renderer.hinclude.class' => 'Symfony\\Component\\HttpKernel\\Fragment\\HIncludeFragmentRenderer', |
|
2379
|
|
|
'fragment.renderer.hinclude.global_template' => NULL, |
|
2380
|
|
|
'fragment.renderer.esi.class' => 'Symfony\\Component\\HttpKernel\\Fragment\\EsiFragmentRenderer', |
|
2381
|
|
|
'fragment.path' => '/_fragment', |
|
2382
|
|
|
'translator.class' => 'Symfony\\Bundle\\FrameworkBundle\\Translation\\Translator', |
|
2383
|
|
|
'translator.identity.class' => 'Symfony\\Component\\Translation\\IdentityTranslator', |
|
2384
|
|
|
'translator.selector.class' => 'Symfony\\Component\\Translation\\MessageSelector', |
|
2385
|
|
|
'translation.loader.php.class' => 'Symfony\\Component\\Translation\\Loader\\PhpFileLoader', |
|
2386
|
|
|
'translation.loader.yml.class' => 'Symfony\\Component\\Translation\\Loader\\YamlFileLoader', |
|
2387
|
|
|
'translation.loader.xliff.class' => 'Symfony\\Component\\Translation\\Loader\\XliffFileLoader', |
|
2388
|
|
|
'translation.loader.po.class' => 'Symfony\\Component\\Translation\\Loader\\PoFileLoader', |
|
2389
|
|
|
'translation.loader.mo.class' => 'Symfony\\Component\\Translation\\Loader\\MoFileLoader', |
|
2390
|
|
|
'translation.loader.qt.class' => 'Symfony\\Component\\Translation\\Loader\\QtFileLoader', |
|
2391
|
|
|
'translation.loader.csv.class' => 'Symfony\\Component\\Translation\\Loader\\CsvFileLoader', |
|
2392
|
|
|
'translation.loader.res.class' => 'Symfony\\Component\\Translation\\Loader\\IcuResFileLoader', |
|
2393
|
|
|
'translation.loader.dat.class' => 'Symfony\\Component\\Translation\\Loader\\IcuDatFileLoader', |
|
2394
|
|
|
'translation.loader.ini.class' => 'Symfony\\Component\\Translation\\Loader\\IniFileLoader', |
|
2395
|
|
|
'translation.loader.json.class' => 'Symfony\\Component\\Translation\\Loader\\JsonFileLoader', |
|
2396
|
|
|
'translation.dumper.php.class' => 'Symfony\\Component\\Translation\\Dumper\\PhpFileDumper', |
|
2397
|
|
|
'translation.dumper.xliff.class' => 'Symfony\\Component\\Translation\\Dumper\\XliffFileDumper', |
|
2398
|
|
|
'translation.dumper.po.class' => 'Symfony\\Component\\Translation\\Dumper\\PoFileDumper', |
|
2399
|
|
|
'translation.dumper.mo.class' => 'Symfony\\Component\\Translation\\Dumper\\MoFileDumper', |
|
2400
|
|
|
'translation.dumper.yml.class' => 'Symfony\\Component\\Translation\\Dumper\\YamlFileDumper', |
|
2401
|
|
|
'translation.dumper.qt.class' => 'Symfony\\Component\\Translation\\Dumper\\QtFileDumper', |
|
2402
|
|
|
'translation.dumper.csv.class' => 'Symfony\\Component\\Translation\\Dumper\\CsvFileDumper', |
|
2403
|
|
|
'translation.dumper.ini.class' => 'Symfony\\Component\\Translation\\Dumper\\IniFileDumper', |
|
2404
|
|
|
'translation.dumper.json.class' => 'Symfony\\Component\\Translation\\Dumper\\JsonFileDumper', |
|
2405
|
|
|
'translation.dumper.res.class' => 'Symfony\\Component\\Translation\\Dumper\\IcuResFileDumper', |
|
2406
|
|
|
'translation.extractor.php.class' => 'Symfony\\Bundle\\FrameworkBundle\\Translation\\PhpExtractor', |
|
2407
|
|
|
'translation.loader.class' => 'Symfony\\Bundle\\FrameworkBundle\\Translation\\TranslationLoader', |
|
2408
|
|
|
'translation.extractor.class' => 'Symfony\\Component\\Translation\\Extractor\\ChainExtractor', |
|
2409
|
|
|
'translation.writer.class' => 'Symfony\\Component\\Translation\\Writer\\TranslationWriter', |
|
2410
|
|
|
'property_accessor.class' => 'Symfony\\Component\\PropertyAccess\\PropertyAccessor', |
|
2411
|
|
|
'kernel.secret' => 'secret', |
|
2412
|
|
|
'kernel.http_method_override' => true, |
|
2413
|
|
|
'kernel.trusted_hosts' => array( |
|
2414
|
|
|
|
|
2415
|
|
|
), |
|
2416
|
|
|
'kernel.trusted_proxies' => array( |
|
2417
|
|
|
|
|
2418
|
|
|
), |
|
2419
|
|
|
'kernel.default_locale' => 'en', |
|
2420
|
|
|
'test.client.class' => 'Symfony\\Bundle\\FrameworkBundle\\Client', |
|
2421
|
|
|
'test.client.parameters' => array( |
|
2422
|
|
|
|
|
2423
|
|
|
), |
|
2424
|
|
|
'test.client.history.class' => 'Symfony\\Component\\BrowserKit\\History', |
|
2425
|
|
|
'test.client.cookiejar.class' => 'Symfony\\Component\\BrowserKit\\CookieJar', |
|
2426
|
|
|
'test.session.listener.class' => 'Symfony\\Bundle\\FrameworkBundle\\EventListener\\TestSessionListener', |
|
2427
|
|
|
'session.class' => 'Symfony\\Component\\HttpFoundation\\Session\\Session', |
|
2428
|
|
|
'session.flashbag.class' => 'Symfony\\Component\\HttpFoundation\\Session\\Flash\\FlashBag', |
|
2429
|
|
|
'session.attribute_bag.class' => 'Symfony\\Component\\HttpFoundation\\Session\\Attribute\\AttributeBag', |
|
2430
|
|
|
'session.storage.metadata_bag.class' => 'Symfony\\Component\\HttpFoundation\\Session\\Storage\\MetadataBag', |
|
2431
|
|
|
'session.metadata.storage_key' => '_sf2_meta', |
|
2432
|
|
|
'session.storage.native.class' => 'Symfony\\Component\\HttpFoundation\\Session\\Storage\\NativeSessionStorage', |
|
2433
|
|
|
'session.storage.php_bridge.class' => 'Symfony\\Component\\HttpFoundation\\Session\\Storage\\PhpBridgeSessionStorage', |
|
2434
|
|
|
'session.storage.mock_file.class' => 'Symfony\\Component\\HttpFoundation\\Session\\Storage\\MockFileSessionStorage', |
|
2435
|
|
|
'session.handler.native_file.class' => 'Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler\\NativeFileSessionHandler', |
|
2436
|
|
|
'session.handler.write_check.class' => 'Symfony\\Component\\HttpFoundation\\Session\\Storage\\Handler\\WriteCheckSessionHandler', |
|
2437
|
|
|
'session_listener.class' => 'Symfony\\Bundle\\FrameworkBundle\\EventListener\\SessionListener', |
|
2438
|
|
|
'session.storage.options' => array( |
|
2439
|
|
|
'cookie_httponly' => true, |
|
2440
|
|
|
'gc_probability' => 1, |
|
2441
|
|
|
), |
|
2442
|
|
|
'session.save_path' => (__DIR__.'/sessions'), |
|
2443
|
|
|
'session.metadata.update_threshold' => '0', |
|
2444
|
|
|
'security.secure_random.class' => 'Symfony\\Component\\Security\\Core\\Util\\SecureRandom', |
|
2445
|
|
|
'form.resolved_type_factory.class' => 'Symfony\\Component\\Form\\ResolvedFormTypeFactory', |
|
2446
|
|
|
'form.registry.class' => 'Symfony\\Component\\Form\\FormRegistry', |
|
2447
|
|
|
'form.factory.class' => 'Symfony\\Component\\Form\\FormFactory', |
|
2448
|
|
|
'form.extension.class' => 'Symfony\\Component\\Form\\Extension\\DependencyInjection\\DependencyInjectionExtension', |
|
2449
|
|
|
'form.type_guesser.validator.class' => 'Symfony\\Component\\Form\\Extension\\Validator\\ValidatorTypeGuesser', |
|
2450
|
|
|
'form.type_extension.form.request_handler.class' => 'Symfony\\Component\\Form\\Extension\\HttpFoundation\\HttpFoundationRequestHandler', |
|
2451
|
|
|
'form.type_extension.csrf.enabled' => true, |
|
2452
|
|
|
'form.type_extension.csrf.field_name' => '_token', |
|
2453
|
|
|
'security.csrf.token_generator.class' => 'Symfony\\Component\\Security\\Csrf\\TokenGenerator\\UriSafeTokenGenerator', |
|
2454
|
|
|
'security.csrf.token_storage.class' => 'Symfony\\Component\\Security\\Csrf\\TokenStorage\\SessionTokenStorage', |
|
2455
|
|
|
'security.csrf.token_manager.class' => 'Symfony\\Component\\Security\\Csrf\\CsrfTokenManager', |
|
2456
|
|
|
'templating.engine.delegating.class' => 'Symfony\\Bundle\\FrameworkBundle\\Templating\\DelegatingEngine', |
|
2457
|
|
|
'templating.name_parser.class' => 'Symfony\\Bundle\\FrameworkBundle\\Templating\\TemplateNameParser', |
|
2458
|
|
|
'templating.filename_parser.class' => 'Symfony\\Bundle\\FrameworkBundle\\Templating\\TemplateFilenameParser', |
|
2459
|
|
|
'templating.cache_warmer.template_paths.class' => 'Symfony\\Bundle\\FrameworkBundle\\CacheWarmer\\TemplatePathsCacheWarmer', |
|
2460
|
|
|
'templating.locator.class' => 'Symfony\\Bundle\\FrameworkBundle\\Templating\\Loader\\TemplateLocator', |
|
2461
|
|
|
'templating.loader.filesystem.class' => 'Symfony\\Bundle\\FrameworkBundle\\Templating\\Loader\\FilesystemLoader', |
|
2462
|
|
|
'templating.loader.cache.class' => 'Symfony\\Component\\Templating\\Loader\\CacheLoader', |
|
2463
|
|
|
'templating.loader.chain.class' => 'Symfony\\Component\\Templating\\Loader\\ChainLoader', |
|
2464
|
|
|
'templating.finder.class' => 'Symfony\\Bundle\\FrameworkBundle\\CacheWarmer\\TemplateFinder', |
|
2465
|
|
|
'templating.helper.assets.class' => 'Symfony\\Bundle\\FrameworkBundle\\Templating\\Helper\\AssetsHelper', |
|
2466
|
|
|
'templating.helper.router.class' => 'Symfony\\Bundle\\FrameworkBundle\\Templating\\Helper\\RouterHelper', |
|
2467
|
|
|
'templating.helper.code.file_link_format' => NULL, |
|
2468
|
|
|
'templating.loader.cache.path' => NULL, |
|
2469
|
|
|
'templating.engines' => array( |
|
2470
|
|
|
0 => 'twig', |
|
2471
|
|
|
), |
|
2472
|
|
|
'validator.class' => 'Symfony\\Component\\Validator\\Validator\\ValidatorInterface', |
|
2473
|
|
|
'validator.builder.class' => 'Symfony\\Component\\Validator\\ValidatorBuilderInterface', |
|
2474
|
|
|
'validator.builder.factory.class' => 'Symfony\\Component\\Validator\\Validation', |
|
2475
|
|
|
'validator.mapping.cache.apc.class' => 'Symfony\\Component\\Validator\\Mapping\\Cache\\ApcCache', |
|
2476
|
|
|
'validator.mapping.cache.prefix' => '', |
|
2477
|
|
|
'validator.validator_factory.class' => 'Symfony\\Bundle\\FrameworkBundle\\Validator\\ConstraintValidatorFactory', |
|
2478
|
|
|
'validator.expression.class' => 'Symfony\\Component\\Validator\\Constraints\\ExpressionValidator', |
|
2479
|
|
|
'validator.email.class' => 'Symfony\\Component\\Validator\\Constraints\\EmailValidator', |
|
2480
|
|
|
'validator.translation_domain' => 'validators', |
|
2481
|
|
|
'validator.api' => '2.5-bc', |
|
2482
|
|
|
'data_collector.templates' => array( |
|
2483
|
|
|
|
|
2484
|
|
|
), |
|
2485
|
|
|
'router.class' => 'Symfony\\Bundle\\FrameworkBundle\\Routing\\Router', |
|
2486
|
|
|
'router.request_context.class' => 'Symfony\\Component\\Routing\\RequestContext', |
|
2487
|
|
|
'routing.loader.class' => 'Symfony\\Bundle\\FrameworkBundle\\Routing\\DelegatingLoader', |
|
2488
|
|
|
'routing.resolver.class' => 'Symfony\\Component\\Config\\Loader\\LoaderResolver', |
|
2489
|
|
|
'routing.loader.xml.class' => 'Symfony\\Component\\Routing\\Loader\\XmlFileLoader', |
|
2490
|
|
|
'routing.loader.yml.class' => 'Symfony\\Component\\Routing\\Loader\\YamlFileLoader', |
|
2491
|
|
|
'routing.loader.php.class' => 'Symfony\\Component\\Routing\\Loader\\PhpFileLoader', |
|
2492
|
|
|
'router.options.generator_class' => 'Symfony\\Component\\Routing\\Generator\\UrlGenerator', |
|
2493
|
|
|
'router.options.generator_base_class' => 'Symfony\\Component\\Routing\\Generator\\UrlGenerator', |
|
2494
|
|
|
'router.options.generator_dumper_class' => 'Symfony\\Component\\Routing\\Generator\\Dumper\\PhpGeneratorDumper', |
|
2495
|
|
|
'router.options.matcher_class' => 'Symfony\\Bundle\\FrameworkBundle\\Routing\\RedirectableUrlMatcher', |
|
2496
|
|
|
'router.options.matcher_base_class' => 'Symfony\\Bundle\\FrameworkBundle\\Routing\\RedirectableUrlMatcher', |
|
2497
|
|
|
'router.options.matcher_dumper_class' => 'Symfony\\Component\\Routing\\Matcher\\Dumper\\PhpMatcherDumper', |
|
2498
|
|
|
'router.cache_warmer.class' => 'Symfony\\Bundle\\FrameworkBundle\\CacheWarmer\\RouterCacheWarmer', |
|
2499
|
|
|
'router.options.matcher.cache_class' => 'AppTestUrlMatcher', |
|
2500
|
|
|
'router.options.generator.cache_class' => 'AppTestUrlGenerator', |
|
2501
|
|
|
'router_listener.class' => 'Symfony\\Component\\HttpKernel\\EventListener\\RouterListener', |
|
2502
|
|
|
'router.request_context.host' => 'localhost', |
|
2503
|
|
|
'router.request_context.scheme' => 'http', |
|
2504
|
|
|
'router.request_context.base_url' => '', |
|
2505
|
|
|
'router.resource' => ($this->targetDirs[2].'/routing.yml'), |
|
2506
|
|
|
'router.cache_class_prefix' => 'AppTest', |
|
2507
|
|
|
'request_listener.http_port' => 80, |
|
2508
|
|
|
'request_listener.https_port' => 443, |
|
2509
|
|
|
'annotations.reader.class' => 'Doctrine\\Common\\Annotations\\AnnotationReader', |
|
2510
|
|
|
'annotations.cached_reader.class' => 'Doctrine\\Common\\Annotations\\CachedReader', |
|
2511
|
|
|
'annotations.file_cache_reader.class' => 'Doctrine\\Common\\Annotations\\FileCacheReader', |
|
2512
|
|
|
'debug.debug_handlers_listener.class' => 'Symfony\\Component\\HttpKernel\\EventListener\\DebugHandlersListener', |
|
2513
|
|
|
'debug.stopwatch.class' => 'Symfony\\Component\\Stopwatch\\Stopwatch', |
|
2514
|
|
|
'debug.error_handler.throw_at' => -1, |
|
2515
|
|
|
'debug.event_dispatcher.class' => 'Symfony\\Component\\HttpKernel\\Debug\\TraceableEventDispatcher', |
|
2516
|
|
|
'debug.container.dump' => (__DIR__.'/AppTestDebugProjectContainer.xml'), |
|
2517
|
|
|
'debug.controller_resolver.class' => 'Symfony\\Component\\HttpKernel\\Controller\\TraceableControllerResolver', |
|
2518
|
|
|
'twig.class' => 'Twig_Environment', |
|
2519
|
|
|
'twig.loader.filesystem.class' => 'Symfony\\Bundle\\TwigBundle\\Loader\\FilesystemLoader', |
|
2520
|
|
|
'twig.loader.chain.class' => 'Twig_Loader_Chain', |
|
2521
|
|
|
'templating.engine.twig.class' => 'Symfony\\Bundle\\TwigBundle\\TwigEngine', |
|
2522
|
|
|
'twig.cache_warmer.class' => 'Symfony\\Bundle\\TwigBundle\\CacheWarmer\\TemplateCacheCacheWarmer', |
|
2523
|
|
|
'twig.extension.trans.class' => 'Symfony\\Bridge\\Twig\\Extension\\TranslationExtension', |
|
2524
|
|
|
'twig.extension.actions.class' => 'Symfony\\Bundle\\TwigBundle\\Extension\\ActionsExtension', |
|
2525
|
|
|
'twig.extension.code.class' => 'Symfony\\Bridge\\Twig\\Extension\\CodeExtension', |
|
2526
|
|
|
'twig.extension.routing.class' => 'Symfony\\Bridge\\Twig\\Extension\\RoutingExtension', |
|
2527
|
|
|
'twig.extension.yaml.class' => 'Symfony\\Bridge\\Twig\\Extension\\YamlExtension', |
|
2528
|
|
|
'twig.extension.form.class' => 'Symfony\\Bridge\\Twig\\Extension\\FormExtension', |
|
2529
|
|
|
'twig.extension.httpkernel.class' => 'Symfony\\Bridge\\Twig\\Extension\\HttpKernelExtension', |
|
2530
|
|
|
'twig.extension.debug.stopwatch.class' => 'Symfony\\Bridge\\Twig\\Extension\\StopwatchExtension', |
|
2531
|
|
|
'twig.extension.expression.class' => 'Symfony\\Bridge\\Twig\\Extension\\ExpressionExtension', |
|
2532
|
|
|
'twig.form.engine.class' => 'Symfony\\Bridge\\Twig\\Form\\TwigRendererEngine', |
|
2533
|
|
|
'twig.form.renderer.class' => 'Symfony\\Bridge\\Twig\\Form\\TwigRenderer', |
|
2534
|
|
|
'twig.translation.extractor.class' => 'Symfony\\Bridge\\Twig\\Translation\\TwigExtractor', |
|
2535
|
|
|
'twig.exception_listener.class' => 'Symfony\\Component\\HttpKernel\\EventListener\\ExceptionListener', |
|
2536
|
|
|
'twig.controller.exception.class' => 'Symfony\\Bundle\\TwigBundle\\Controller\\ExceptionController', |
|
2537
|
|
|
'twig.controller.preview_error.class' => 'Symfony\\Bundle\\TwigBundle\\Controller\\PreviewErrorController', |
|
2538
|
|
|
'twig.exception_listener.controller' => 'twig.controller.exception:showAction', |
|
2539
|
|
|
'twig.form.resources' => array( |
|
2540
|
|
|
0 => 'form_div_layout.html.twig', |
|
2541
|
|
|
), |
|
2542
|
|
|
'monolog.logger.class' => 'Symfony\\Bridge\\Monolog\\Logger', |
|
2543
|
|
|
'monolog.gelf.publisher.class' => 'Gelf\\MessagePublisher', |
|
2544
|
|
|
'monolog.gelfphp.publisher.class' => 'Gelf\\Publisher', |
|
2545
|
|
|
'monolog.handler.stream.class' => 'Monolog\\Handler\\StreamHandler', |
|
2546
|
|
|
'monolog.handler.console.class' => 'Symfony\\Bridge\\Monolog\\Handler\\ConsoleHandler', |
|
2547
|
|
|
'monolog.handler.group.class' => 'Monolog\\Handler\\GroupHandler', |
|
2548
|
|
|
'monolog.handler.buffer.class' => 'Monolog\\Handler\\BufferHandler', |
|
2549
|
|
|
'monolog.handler.rotating_file.class' => 'Monolog\\Handler\\RotatingFileHandler', |
|
2550
|
|
|
'monolog.handler.syslog.class' => 'Monolog\\Handler\\SyslogHandler', |
|
2551
|
|
|
'monolog.handler.syslogudp.class' => 'Monolog\\Handler\\SyslogUdpHandler', |
|
2552
|
|
|
'monolog.handler.null.class' => 'Monolog\\Handler\\NullHandler', |
|
2553
|
|
|
'monolog.handler.test.class' => 'Monolog\\Handler\\TestHandler', |
|
2554
|
|
|
'monolog.handler.gelf.class' => 'Monolog\\Handler\\GelfHandler', |
|
2555
|
|
|
'monolog.handler.rollbar.class' => 'Monolog\\Handler\\RollbarHandler', |
|
2556
|
|
|
'monolog.handler.flowdock.class' => 'Monolog\\Handler\\FlowdockHandler', |
|
2557
|
|
|
'monolog.handler.browser_console.class' => 'Monolog\\Handler\\BrowserConsoleHandler', |
|
2558
|
|
|
'monolog.handler.firephp.class' => 'Symfony\\Bridge\\Monolog\\Handler\\FirePHPHandler', |
|
2559
|
|
|
'monolog.handler.chromephp.class' => 'Symfony\\Bridge\\Monolog\\Handler\\ChromePhpHandler', |
|
2560
|
|
|
'monolog.handler.debug.class' => 'Symfony\\Bridge\\Monolog\\Handler\\DebugHandler', |
|
2561
|
|
|
'monolog.handler.swift_mailer.class' => 'Symfony\\Bridge\\Monolog\\Handler\\SwiftMailerHandler', |
|
2562
|
|
|
'monolog.handler.native_mailer.class' => 'Monolog\\Handler\\NativeMailerHandler', |
|
2563
|
|
|
'monolog.handler.socket.class' => 'Monolog\\Handler\\SocketHandler', |
|
2564
|
|
|
'monolog.handler.pushover.class' => 'Monolog\\Handler\\PushoverHandler', |
|
2565
|
|
|
'monolog.handler.raven.class' => 'Monolog\\Handler\\RavenHandler', |
|
2566
|
|
|
'monolog.handler.newrelic.class' => 'Monolog\\Handler\\NewRelicHandler', |
|
2567
|
|
|
'monolog.handler.hipchat.class' => 'Monolog\\Handler\\HipChatHandler', |
|
2568
|
|
|
'monolog.handler.slack.class' => 'Monolog\\Handler\\SlackHandler', |
|
2569
|
|
|
'monolog.handler.cube.class' => 'Monolog\\Handler\\CubeHandler', |
|
2570
|
|
|
'monolog.handler.amqp.class' => 'Monolog\\Handler\\AmqpHandler', |
|
2571
|
|
|
'monolog.handler.error_log.class' => 'Monolog\\Handler\\ErrorLogHandler', |
|
2572
|
|
|
'monolog.handler.loggly.class' => 'Monolog\\Handler\\LogglyHandler', |
|
2573
|
|
|
'monolog.handler.logentries.class' => 'Monolog\\Handler\\LogEntriesHandler', |
|
2574
|
|
|
'monolog.handler.whatfailuregroup.class' => 'Monolog\\Handler\\WhatFailureGroupHandler', |
|
2575
|
|
|
'monolog.activation_strategy.not_found.class' => 'Symfony\\Bundle\\MonologBundle\\NotFoundActivationStrategy', |
|
2576
|
|
|
'monolog.handler.fingers_crossed.class' => 'Monolog\\Handler\\FingersCrossedHandler', |
|
2577
|
|
|
'monolog.handler.fingers_crossed.error_level_activation_strategy.class' => 'Monolog\\Handler\\FingersCrossed\\ErrorLevelActivationStrategy', |
|
2578
|
|
|
'monolog.handler.filter.class' => 'Monolog\\Handler\\FilterHandler', |
|
2579
|
|
|
'monolog.handler.mongo.class' => 'Monolog\\Handler\\MongoDBHandler', |
|
2580
|
|
|
'monolog.mongo.client.class' => 'MongoClient', |
|
2581
|
|
|
'monolog.handler.elasticsearch.class' => 'Monolog\\Handler\\ElasticSearchHandler', |
|
2582
|
|
|
'monolog.elastica.client.class' => 'Elastica\\Client', |
|
2583
|
|
|
'monolog.swift_mailer.handlers' => array( |
|
2584
|
|
|
|
|
2585
|
|
|
), |
|
2586
|
|
|
'monolog.handlers_to_channels' => array( |
|
2587
|
|
|
'monolog.handler.main' => NULL, |
|
2588
|
|
|
), |
|
2589
|
|
|
'itkg_translation.command.translation.class' => 'Itkg\\TranslationBundle\\Command\\TranslationConverterCommand', |
|
2590
|
|
|
'console.command.ids' => array( |
|
2591
|
|
|
0 => 'itkg_translation.command.translation', |
|
2592
|
|
|
), |
|
2593
|
|
|
); |
|
2594
|
|
|
} |
|
2595
|
|
|
} |
|
2596
|
|
|
|
Let’s assume that you have a directory layout like this:
. |-- OtherDir | |-- Bar.php | `-- Foo.php `-- SomeDir `-- Foo.phpand let’s assume the following content of
Bar.php:If both files
OtherDir/Foo.phpandSomeDir/Foo.phpare loaded in the same runtime, you will see a PHP error such as the following:PHP Fatal error: Cannot use SomeDir\Foo as Foo because the name is already in use in OtherDir/Foo.phpHowever, as
OtherDir/Foo.phpdoes not necessarily have to be loaded and the error is only triggered if it is loaded beforeOtherDir/Bar.php, this problem might go unnoticed for a while. In order to prevent this error from surfacing, you must import the namespace with a different alias: