GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Pull Request — master (#249)
by Théo
34:01
created

SymfonyAppTestProjectContainer   F

Complexity

Total Complexity 142

Size/Duplication

Total Lines 2218
Duplicated Lines 6.45 %

Coupling/Cohesion

Components 2
Dependencies 106

Importance

Changes 0
Metric Value
wmc 142
lcom 2
cbo 106
dl 143
loc 2218
rs 0.5217
c 0
b 0
f 0

137 Methods

Rating   Name   Duplication   Size   Complexity  
B __construct() 0 144 2
A compile() 0 4 1
A isFrozen() 0 4 1
A getAlice_Processor_EntityManagersService() 0 4 1
A getAnnotationReaderService() 0 4 1
A getCache_AppService() 0 4 1
A getCache_DefaultRedisProviderService() 0 4 1
A getCache_SystemService() 0 4 1
A getCacheClearerService() 0 10 1
A getCacheWarmerService() 0 4 1
A getConfigCacheFactoryService() 0 4 1
A getDebug_DebugHandlersListenerService() 0 4 1
A getDebug_StopwatchService() 0 4 1
A getEventDispatcherService() 17 17 1
A getFaker_Provider_FooService() 0 4 1
A getFileLocatorService() 0 4 1
A getFilesystemService() 0 4 1
A getForm_FactoryService() 0 4 1
A getForm_RegistryService() 0 4 1
A getForm_ResolvedTypeFactoryService() 0 4 1
A getForm_Type_BirthdayService() 0 6 1
A getForm_Type_ButtonService() 0 6 1
A getForm_Type_CheckboxService() 0 6 1
A getForm_Type_ChoiceService() 0 4 1
A getForm_Type_CollectionService() 0 6 1
A getForm_Type_CountryService() 0 6 1
A getForm_Type_CurrencyService() 0 6 1
A getForm_Type_DateService() 0 6 1
A getForm_Type_DatetimeService() 0 6 1
A getForm_Type_EmailService() 0 6 1
A getForm_Type_FileService() 0 6 1
A getForm_Type_FormService() 0 4 1
A getForm_Type_HiddenService() 0 6 1
A getForm_Type_IntegerService() 0 6 1
A getForm_Type_LanguageService() 0 6 1
A getForm_Type_LocaleService() 0 6 1
A getForm_Type_MoneyService() 0 6 1
A getForm_Type_NumberService() 0 6 1
A getForm_Type_PasswordService() 0 6 1
A getForm_Type_PercentService() 0 6 1
A getForm_Type_RadioService() 0 6 1
A getForm_Type_RangeService() 0 6 1
A getForm_Type_RepeatedService() 0 6 1
A getForm_Type_ResetService() 0 6 1
A getForm_Type_SearchService() 0 6 1
A getForm_Type_SubmitService() 0 6 1
A getForm_Type_TextService() 0 6 1
A getForm_Type_TextareaService() 0 6 1
A getForm_Type_TimeService() 0 6 1
A getForm_Type_TimezoneService() 0 6 1
A getForm_Type_UrlService() 0 6 1
A getForm_TypeExtension_Form_HttpFoundationService() 0 4 1
A getForm_TypeExtension_Form_ValidatorService() 0 4 1
A getForm_TypeExtension_Repeated_ValidatorService() 0 4 1
A getForm_TypeExtension_Submit_ValidatorService() 0 4 1
A getForm_TypeExtension_Upload_ValidatorService() 0 4 1
A getForm_TypeGuesser_ValidatorService() 0 4 1
A getFragment_HandlerService() 10 10 1
A getFragment_Renderer_EsiService() 8 8 1
A getFragment_Renderer_HincludeService() 8 8 1
A getFragment_Renderer_InlineService() 8 8 1
A getFragment_Renderer_SsiService() 8 8 1
A getHautelookAlice_Alice_Fixtures_LoaderService() 0 4 1
A getHautelookAlice_Alice_ProcessorChainService() 0 4 1
A getHautelookAlice_BundleResolverService() 0 4 1
A getHautelookAlice_Doctrine_CommandFactoryService() 0 4 1
A getHautelookAlice_Doctrine_Executor_FixturesExecutorService() 0 4 1
A getHautelookAlice_FakerService() 9 9 1
A getHautelookAlice_Faker_ProviderChainService() 0 4 1
A getHautelookAlice_Fixtures_LoaderService() 0 4 1
A getHttpKernelService() 0 4 1
A getKernelService() 0 4 1
A getKernel_ClassCache_CacheWarmerService() 0 4 1
A getLocaleListenerService() 0 4 1
A getPropertyAccessorService() 0 4 1
A getRequestStackService() 0 4 1
A getResponseListenerService() 0 4 1
A getRouterService() 8 8 1
A getRouterListenerService() 0 4 1
A getRouting_LoaderService() 13 13 1
A getServiceContainerService() 0 4 1
A getSessionService() 0 4 1
A getSession_HandlerService() 0 4 1
A getSession_SaveListenerService() 0 4 1
A getSession_Storage_FilesystemService() 0 4 1
A getSession_Storage_NativeService() 0 4 1
A getSession_Storage_PhpBridgeService() 0 4 1
A getSessionListenerService() 0 4 1
A getStreamedResponseListenerService() 0 4 1
A getTest_ClientService() 0 4 1
A getTest_Client_CookiejarService() 0 4 1
A getTest_Client_HistoryService() 0 4 1
A getTest_Session_ListenerService() 0 4 1
A getTranslation_Dumper_CsvService() 0 4 1
A getTranslation_Dumper_IniService() 0 4 1
A getTranslation_Dumper_JsonService() 0 4 1
A getTranslation_Dumper_MoService() 0 4 1
A getTranslation_Dumper_PhpService() 0 4 1
A getTranslation_Dumper_PoService() 0 4 1
A getTranslation_Dumper_QtService() 0 4 1
A getTranslation_Dumper_ResService() 0 4 1
A getTranslation_Dumper_XliffService() 0 4 1
A getTranslation_Dumper_YmlService() 0 4 1
A getTranslation_ExtractorService() 8 8 1
A getTranslation_Extractor_PhpService() 0 4 1
A getTranslation_LoaderService() 21 21 1
A getTranslation_Loader_CsvService() 0 4 1
A getTranslation_Loader_DatService() 0 4 1
A getTranslation_Loader_IniService() 0 4 1
A getTranslation_Loader_JsonService() 0 4 1
A getTranslation_Loader_MoService() 0 4 1
A getTranslation_Loader_PhpService() 0 4 1
A getTranslation_Loader_PoService() 0 4 1
A getTranslation_Loader_QtService() 0 4 1
A getTranslation_Loader_ResService() 0 4 1
A getTranslation_Loader_XliffService() 0 4 1
A getTranslation_Loader_YmlService() 0 4 1
A getTranslation_WriterService() 17 17 1
A getTranslatorService() 0 4 1
A getTranslator_DefaultService() 8 8 1
A getTranslatorListenerService() 0 4 1
A getUriSignerService() 0 4 1
A getValidateRequestListenerService() 0 4 1
A getValidatorService() 0 4 1
A getValidator_BuilderService() 0 14 1
A getValidator_EmailService() 0 4 1
A getValidator_ExpressionService() 0 4 1
A getCache_ValidatorService() 0 4 1
A getControllerNameConverterService() 0 4 1
A getRouter_RequestContextService() 0 4 1
A getSession_Storage_MetadataBagService() 0 4 1
A getTranslator_SelectorService() 0 4 1
A getParameter() 0 10 3
A hasParameter() 0 6 2
A setParameter() 0 4 1
A getParameterBag() 0 8 2
B getDefaultParameters() 0 78 1

How to fix   Duplicated Code    Complexity   

Duplicated Code

Duplicate code is one of the most pungent code smells. A rule that is often used is to re-structure code once it is duplicated in three or more places.

Common duplication problems, and corresponding solutions are:

Complex Class

 Tip:   Before tackling complexity, make sure that you eliminate any duplication first. This often can reduce the size of classes significantly.

Complex classes like SymfonyAppTestProjectContainer often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes. You can also have a look at the cohesion graph to spot any un-connected, or weakly-connected components.

Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.

While breaking up the class, it is a good idea to analyze how other classes use SymfonyAppTestProjectContainer, and based on these observations, apply Extract Interface, too.

1
<?php
2
3
use Symfony\Component\DependencyInjection\ContainerInterface;
4
use Symfony\Component\DependencyInjection\Container;
5
use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
0 ignored issues
show
Bug introduced by
This use statement conflicts with another class in this namespace, InvalidArgumentException.

Let’s assume that you have a directory layout like this:

.
|-- OtherDir
|   |-- Bar.php
|   `-- Foo.php
`-- SomeDir
    `-- Foo.php

and let’s assume the following content of Bar.php:

// Bar.php
namespace OtherDir;

use SomeDir\Foo; // This now conflicts the class OtherDir\Foo

If both files OtherDir/Foo.php and SomeDir/Foo.php are 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.php

However, as OtherDir/Foo.php does not necessarily have to be loaded and the error is only triggered if it is loaded before OtherDir/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:

// Bar.php
namespace OtherDir;

use SomeDir\Foo as SomeDirFoo; // There is no conflict anymore.
Loading history...
6
use Symfony\Component\DependencyInjection\Exception\LogicException;
0 ignored issues
show
Bug introduced by
This use statement conflicts with another class in this namespace, LogicException.

Let’s assume that you have a directory layout like this:

.
|-- OtherDir
|   |-- Bar.php
|   `-- Foo.php
`-- SomeDir
    `-- Foo.php

and let’s assume the following content of Bar.php:

// Bar.php
namespace OtherDir;

use SomeDir\Foo; // This now conflicts the class OtherDir\Foo

If both files OtherDir/Foo.php and SomeDir/Foo.php are 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.php

However, as OtherDir/Foo.php does not necessarily have to be loaded and the error is only triggered if it is loaded before OtherDir/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:

// Bar.php
namespace OtherDir;

use SomeDir\Foo as SomeDirFoo; // There is no conflict anymore.
Loading history...
7
use Symfony\Component\DependencyInjection\Exception\RuntimeException;
0 ignored issues
show
Bug introduced by
This use statement conflicts with another class in this namespace, RuntimeException.

Let’s assume that you have a directory layout like this:

.
|-- OtherDir
|   |-- Bar.php
|   `-- Foo.php
`-- SomeDir
    `-- Foo.php

and let’s assume the following content of Bar.php:

// Bar.php
namespace OtherDir;

use SomeDir\Foo; // This now conflicts the class OtherDir\Foo

If both files OtherDir/Foo.php and SomeDir/Foo.php are 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.php

However, as OtherDir/Foo.php does not necessarily have to be loaded and the error is only triggered if it is loaded before OtherDir/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:

// Bar.php
namespace OtherDir;

use SomeDir\Foo as SomeDirFoo; // There is no conflict anymore.
Loading history...
8
use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
9
10
/*
11
 * SymfonyAppTestProjectContainer.
12
 *
13
 * This class has been auto-generated
14
 * by the Symfony Dependency Injection Component.
15
 */
16
class SymfonyAppTestProjectContainer extends Container
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
17
{
18
    private $parameters;
19
    private $targetDirs = array();
20
21
    /*
22
     * Constructor.
23
     */
24
    public function __construct()
25
    {
26
        $dir = __DIR__;
27
        for ($i = 1; $i <= 5; ++$i) {
28
            $this->targetDirs[$i] = $dir = dirname($dir);
29
        }
30
        $this->parameters = $this->getDefaultParameters();
31
32
        $this->services = array();
33
        $this->methodMap = array(
34
            'alice.processor.entity_managers' => 'getAlice_Processor_EntityManagersService',
35
            'annotation_reader' => 'getAnnotationReaderService',
36
            'cache.app' => 'getCache_AppService',
37
            'cache.default_redis_provider' => 'getCache_DefaultRedisProviderService',
38
            'cache.system' => 'getCache_SystemService',
39
            'cache.validator' => 'getCache_ValidatorService',
40
            'cache_clearer' => 'getCacheClearerService',
41
            'cache_warmer' => 'getCacheWarmerService',
42
            'config_cache_factory' => 'getConfigCacheFactoryService',
43
            'controller_name_converter' => 'getControllerNameConverterService',
44
            'debug.debug_handlers_listener' => 'getDebug_DebugHandlersListenerService',
45
            'debug.stopwatch' => 'getDebug_StopwatchService',
46
            'event_dispatcher' => 'getEventDispatcherService',
47
            'faker.provider.foo' => 'getFaker_Provider_FooService',
48
            'file_locator' => 'getFileLocatorService',
49
            'filesystem' => 'getFilesystemService',
50
            'form.factory' => 'getForm_FactoryService',
51
            'form.registry' => 'getForm_RegistryService',
52
            'form.resolved_type_factory' => 'getForm_ResolvedTypeFactoryService',
53
            'form.type.birthday' => 'getForm_Type_BirthdayService',
54
            'form.type.button' => 'getForm_Type_ButtonService',
55
            'form.type.checkbox' => 'getForm_Type_CheckboxService',
56
            'form.type.choice' => 'getForm_Type_ChoiceService',
57
            'form.type.collection' => 'getForm_Type_CollectionService',
58
            'form.type.country' => 'getForm_Type_CountryService',
59
            'form.type.currency' => 'getForm_Type_CurrencyService',
60
            'form.type.date' => 'getForm_Type_DateService',
61
            'form.type.datetime' => 'getForm_Type_DatetimeService',
62
            'form.type.email' => 'getForm_Type_EmailService',
63
            'form.type.file' => 'getForm_Type_FileService',
64
            'form.type.form' => 'getForm_Type_FormService',
65
            'form.type.hidden' => 'getForm_Type_HiddenService',
66
            'form.type.integer' => 'getForm_Type_IntegerService',
67
            'form.type.language' => 'getForm_Type_LanguageService',
68
            'form.type.locale' => 'getForm_Type_LocaleService',
69
            'form.type.money' => 'getForm_Type_MoneyService',
70
            'form.type.number' => 'getForm_Type_NumberService',
71
            'form.type.password' => 'getForm_Type_PasswordService',
72
            'form.type.percent' => 'getForm_Type_PercentService',
73
            'form.type.radio' => 'getForm_Type_RadioService',
74
            'form.type.range' => 'getForm_Type_RangeService',
75
            'form.type.repeated' => 'getForm_Type_RepeatedService',
76
            'form.type.reset' => 'getForm_Type_ResetService',
77
            'form.type.search' => 'getForm_Type_SearchService',
78
            'form.type.submit' => 'getForm_Type_SubmitService',
79
            'form.type.text' => 'getForm_Type_TextService',
80
            'form.type.textarea' => 'getForm_Type_TextareaService',
81
            'form.type.time' => 'getForm_Type_TimeService',
82
            'form.type.timezone' => 'getForm_Type_TimezoneService',
83
            'form.type.url' => 'getForm_Type_UrlService',
84
            'form.type_extension.form.http_foundation' => 'getForm_TypeExtension_Form_HttpFoundationService',
85
            'form.type_extension.form.validator' => 'getForm_TypeExtension_Form_ValidatorService',
86
            'form.type_extension.repeated.validator' => 'getForm_TypeExtension_Repeated_ValidatorService',
87
            'form.type_extension.submit.validator' => 'getForm_TypeExtension_Submit_ValidatorService',
88
            'form.type_extension.upload.validator' => 'getForm_TypeExtension_Upload_ValidatorService',
89
            'form.type_guesser.validator' => 'getForm_TypeGuesser_ValidatorService',
90
            'fragment.handler' => 'getFragment_HandlerService',
91
            'fragment.renderer.esi' => 'getFragment_Renderer_EsiService',
92
            'fragment.renderer.hinclude' => 'getFragment_Renderer_HincludeService',
93
            'fragment.renderer.inline' => 'getFragment_Renderer_InlineService',
94
            'fragment.renderer.ssi' => 'getFragment_Renderer_SsiService',
95
            'hautelook_alice.alice.fixtures.loader' => 'getHautelookAlice_Alice_Fixtures_LoaderService',
96
            'hautelook_alice.alice.processor_chain' => 'getHautelookAlice_Alice_ProcessorChainService',
97
            'hautelook_alice.bundle_resolver' => 'getHautelookAlice_BundleResolverService',
98
            'hautelook_alice.doctrine.command_factory' => 'getHautelookAlice_Doctrine_CommandFactoryService',
99
            'hautelook_alice.doctrine.executor.fixtures_executor' => 'getHautelookAlice_Doctrine_Executor_FixturesExecutorService',
100
            'hautelook_alice.faker' => 'getHautelookAlice_FakerService',
101
            'hautelook_alice.faker.provider_chain' => 'getHautelookAlice_Faker_ProviderChainService',
102
            'hautelook_alice.fixtures.loader' => 'getHautelookAlice_Fixtures_LoaderService',
103
            'http_kernel' => 'getHttpKernelService',
104
            'kernel' => 'getKernelService',
105
            'kernel.class_cache.cache_warmer' => 'getKernel_ClassCache_CacheWarmerService',
106
            'locale_listener' => 'getLocaleListenerService',
107
            'property_accessor' => 'getPropertyAccessorService',
108
            'request_stack' => 'getRequestStackService',
109
            'response_listener' => 'getResponseListenerService',
110
            'router' => 'getRouterService',
111
            'router.request_context' => 'getRouter_RequestContextService',
112
            'router_listener' => 'getRouterListenerService',
113
            'routing.loader' => 'getRouting_LoaderService',
114
            'service_container' => 'getServiceContainerService',
115
            'session' => 'getSessionService',
116
            'session.handler' => 'getSession_HandlerService',
117
            'session.save_listener' => 'getSession_SaveListenerService',
118
            'session.storage.filesystem' => 'getSession_Storage_FilesystemService',
119
            'session.storage.metadata_bag' => 'getSession_Storage_MetadataBagService',
120
            'session.storage.native' => 'getSession_Storage_NativeService',
121
            'session.storage.php_bridge' => 'getSession_Storage_PhpBridgeService',
122
            'session_listener' => 'getSessionListenerService',
123
            'streamed_response_listener' => 'getStreamedResponseListenerService',
124
            'test.client' => 'getTest_ClientService',
125
            'test.client.cookiejar' => 'getTest_Client_CookiejarService',
126
            'test.client.history' => 'getTest_Client_HistoryService',
127
            'test.session.listener' => 'getTest_Session_ListenerService',
128
            'translation.dumper.csv' => 'getTranslation_Dumper_CsvService',
129
            'translation.dumper.ini' => 'getTranslation_Dumper_IniService',
130
            'translation.dumper.json' => 'getTranslation_Dumper_JsonService',
131
            'translation.dumper.mo' => 'getTranslation_Dumper_MoService',
132
            'translation.dumper.php' => 'getTranslation_Dumper_PhpService',
133
            'translation.dumper.po' => 'getTranslation_Dumper_PoService',
134
            'translation.dumper.qt' => 'getTranslation_Dumper_QtService',
135
            'translation.dumper.res' => 'getTranslation_Dumper_ResService',
136
            'translation.dumper.xliff' => 'getTranslation_Dumper_XliffService',
137
            'translation.dumper.yml' => 'getTranslation_Dumper_YmlService',
138
            'translation.extractor' => 'getTranslation_ExtractorService',
139
            'translation.extractor.php' => 'getTranslation_Extractor_PhpService',
140
            'translation.loader' => 'getTranslation_LoaderService',
141
            'translation.loader.csv' => 'getTranslation_Loader_CsvService',
142
            'translation.loader.dat' => 'getTranslation_Loader_DatService',
143
            'translation.loader.ini' => 'getTranslation_Loader_IniService',
144
            'translation.loader.json' => 'getTranslation_Loader_JsonService',
145
            'translation.loader.mo' => 'getTranslation_Loader_MoService',
146
            'translation.loader.php' => 'getTranslation_Loader_PhpService',
147
            'translation.loader.po' => 'getTranslation_Loader_PoService',
148
            'translation.loader.qt' => 'getTranslation_Loader_QtService',
149
            'translation.loader.res' => 'getTranslation_Loader_ResService',
150
            'translation.loader.xliff' => 'getTranslation_Loader_XliffService',
151
            'translation.loader.yml' => 'getTranslation_Loader_YmlService',
152
            'translation.writer' => 'getTranslation_WriterService',
153
            'translator' => 'getTranslatorService',
154
            'translator.default' => 'getTranslator_DefaultService',
155
            'translator.selector' => 'getTranslator_SelectorService',
156
            'translator_listener' => 'getTranslatorListenerService',
157
            'uri_signer' => 'getUriSignerService',
158
            'validate_request_listener' => 'getValidateRequestListenerService',
159
            'validator' => 'getValidatorService',
160
            'validator.builder' => 'getValidator_BuilderService',
161
            'validator.email' => 'getValidator_EmailService',
162
            'validator.expression' => 'getValidator_ExpressionService',
163
        );
164
        $this->aliases = array(
165
            'session.storage' => 'session.storage.native',
166
        );
167
    }
168
169
    /*
170
     * {@inheritdoc}
171
     */
172
    public function compile()
173
    {
174
        throw new LogicException('You cannot compile a dumped frozen container.');
175
    }
176
177
    /*
178
     * {@inheritdoc}
179
     */
180
    public function isFrozen()
181
    {
182
        return true;
183
    }
184
185
    /*
186
     * Gets the 'alice.processor.entity_managers' service.
187
     *
188
     * This service is shared.
189
     * This method always returns the same instance of the service.
190
     *
191
     * @return \Hautelook\AliceBundle\Tests\SymfonyApp\TestBundle\DataFixtures\Processor\BrandProcessor A Hautelook\AliceBundle\Tests\SymfonyApp\TestBundle\DataFixtures\Processor\BrandProcessor instance
192
     */
193
    protected function getAlice_Processor_EntityManagersService()
194
    {
195
        return $this->services['alice.processor.entity_managers'] = new \Hautelook\AliceBundle\Tests\SymfonyApp\TestBundle\DataFixtures\Processor\BrandProcessor();
196
    }
197
198
    /*
199
     * Gets the 'annotation_reader' service.
200
     *
201
     * This service is shared.
202
     * This method always returns the same instance of the service.
203
     *
204
     * @return \Doctrine\Common\Annotations\CachedReader A Doctrine\Common\Annotations\CachedReader instance
205
     */
206
    protected function getAnnotationReaderService()
207
    {
208
        return $this->services['annotation_reader'] = new \Doctrine\Common\Annotations\CachedReader(new \Doctrine\Common\Annotations\AnnotationReader(), new \Doctrine\Common\Cache\FilesystemCache((__DIR__.'/annotations')), false);
209
    }
210
211
    /*
212
     * Gets the 'cache.app' service.
213
     *
214
     * This service is shared.
215
     * This method always returns the same instance of the service.
216
     *
217
     * @return \Symfony\Component\Cache\Adapter\FilesystemAdapter A Symfony\Component\Cache\Adapter\FilesystemAdapter instance
218
     */
219
    protected function getCache_AppService()
220
    {
221
        return $this->services['cache.app'] = new \Symfony\Component\Cache\Adapter\FilesystemAdapter('PDAK0g3AbN', 0, (__DIR__.'/pools'));
222
    }
223
224
    /*
225
     * Gets the 'cache.default_redis_provider' service.
226
     *
227
     * This service is shared.
228
     * This method always returns the same instance of the service.
229
     *
230
     * @return \Redis A Redis instance
231
     */
232
    protected function getCache_DefaultRedisProviderService()
233
    {
234
        return $this->services['cache.default_redis_provider'] = \Symfony\Component\Cache\Adapter\RedisAdapter::createConnection('redis://localhost');
0 ignored issues
show
Bug Compatibility introduced by
The expression $this->services['cache.d...n('redis://localhost'); of type Redis|Predis\Client adds the type Predis\Client to the return on line 234 which is incompatible with the return type documented by SymfonyAppTestProjectCon...ultRedisProviderService of type Redis.
Loading history...
235
    }
236
237
    /*
238
     * Gets the 'cache.system' service.
239
     *
240
     * This service is shared.
241
     * This method always returns the same instance of the service.
242
     *
243
     * @return \Symfony\Component\Cache\Adapter\AdapterInterface A Symfony\Component\Cache\Adapter\AdapterInterface instance
244
     */
245
    protected function getCache_SystemService()
246
    {
247
        return $this->services['cache.system'] = \Symfony\Component\Cache\Adapter\AbstractAdapter::createSystemCache('KaI1+4NpVv', 0, 'mrAgbEfilFktc2EIWqLSFQ', (__DIR__.'/pools'), NULL);
248
    }
249
250
    /*
251
     * Gets the 'cache_clearer' service.
252
     *
253
     * This service is shared.
254
     * This method always returns the same instance of the service.
255
     *
256
     * @return \Symfony\Component\HttpKernel\CacheClearer\ChainCacheClearer A Symfony\Component\HttpKernel\CacheClearer\ChainCacheClearer instance
257
     */
258
    protected function getCacheClearerService()
259
    {
260
        $a = new \Symfony\Component\HttpKernel\CacheClearer\Psr6CacheClearer();
261
        $a->addPool($this->get('cache.app'));
262
        $a->addPool($this->get('cache.system'));
263
        $a->addPool($this->get('cache.validator'));
264
        $a->addPool(\Symfony\Component\Cache\Adapter\AbstractAdapter::createSystemCache('TIhbVOzfsu', 0, 'mrAgbEfilFktc2EIWqLSFQ', (__DIR__.'/pools'), NULL));
265
266
        return $this->services['cache_clearer'] = new \Symfony\Component\HttpKernel\CacheClearer\ChainCacheClearer(array(0 => $a));
267
    }
268
269
    /*
270
     * Gets the 'cache_warmer' service.
271
     *
272
     * This service is shared.
273
     * This method always returns the same instance of the service.
274
     *
275
     * @return \Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate A Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate instance
276
     */
277
    protected function getCacheWarmerService()
278
    {
279
        return $this->services['cache_warmer'] = new \Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate(array(0 => $this->get('kernel.class_cache.cache_warmer'), 1 => new \Symfony\Bundle\FrameworkBundle\CacheWarmer\TranslationsCacheWarmer($this->get('translator')), 2 => new \Symfony\Bundle\FrameworkBundle\CacheWarmer\RouterCacheWarmer($this->get('router'))));
280
    }
281
282
    /*
283
     * Gets the 'config_cache_factory' service.
284
     *
285
     * This service is shared.
286
     * This method always returns the same instance of the service.
287
     *
288
     * @return \Symfony\Component\Config\ResourceCheckerConfigCacheFactory A Symfony\Component\Config\ResourceCheckerConfigCacheFactory instance
289
     */
290
    protected function getConfigCacheFactoryService()
291
    {
292
        return $this->services['config_cache_factory'] = new \Symfony\Component\Config\ResourceCheckerConfigCacheFactory(array());
293
    }
294
295
    /*
296
     * Gets the 'debug.debug_handlers_listener' service.
297
     *
298
     * This service is shared.
299
     * This method always returns the same instance of the service.
300
     *
301
     * @return \Symfony\Component\HttpKernel\EventListener\DebugHandlersListener A Symfony\Component\HttpKernel\EventListener\DebugHandlersListener instance
302
     */
303
    protected function getDebug_DebugHandlersListenerService()
304
    {
305
        return $this->services['debug.debug_handlers_listener'] = new \Symfony\Component\HttpKernel\EventListener\DebugHandlersListener(NULL, NULL, NULL, NULL, true, NULL);
306
    }
307
308
    /*
309
     * Gets the 'debug.stopwatch' service.
310
     *
311
     * This service is shared.
312
     * This method always returns the same instance of the service.
313
     *
314
     * @return \Symfony\Component\Stopwatch\Stopwatch A Symfony\Component\Stopwatch\Stopwatch instance
315
     */
316
    protected function getDebug_StopwatchService()
317
    {
318
        return $this->services['debug.stopwatch'] = new \Symfony\Component\Stopwatch\Stopwatch();
319
    }
320
321
    /*
322
     * Gets the 'event_dispatcher' service.
323
     *
324
     * This service is shared.
325
     * This method always returns the same instance of the service.
326
     *
327
     * @return \Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher A Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher instance
328
     */
329 View Code Duplication
    protected function getEventDispatcherService()
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
330
    {
331
        $this->services['event_dispatcher'] = $instance = new \Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher($this);
332
333
        $instance->addSubscriberService('response_listener', 'Symfony\\Component\\HttpKernel\\EventListener\\ResponseListener');
334
        $instance->addSubscriberService('streamed_response_listener', 'Symfony\\Component\\HttpKernel\\EventListener\\StreamedResponseListener');
335
        $instance->addSubscriberService('locale_listener', 'Symfony\\Component\\HttpKernel\\EventListener\\LocaleListener');
336
        $instance->addSubscriberService('translator_listener', 'Symfony\\Component\\HttpKernel\\EventListener\\TranslatorListener');
337
        $instance->addSubscriberService('validate_request_listener', 'Symfony\\Component\\HttpKernel\\EventListener\\ValidateRequestListener');
338
        $instance->addSubscriberService('test.session.listener', 'Symfony\\Bundle\\FrameworkBundle\\EventListener\\TestSessionListener');
339
        $instance->addSubscriberService('session_listener', 'Symfony\\Bundle\\FrameworkBundle\\EventListener\\SessionListener');
340
        $instance->addSubscriberService('session.save_listener', 'Symfony\\Component\\HttpKernel\\EventListener\\SaveSessionListener');
341
        $instance->addSubscriberService('router_listener', 'Symfony\\Component\\HttpKernel\\EventListener\\RouterListener');
342
        $instance->addSubscriberService('debug.debug_handlers_listener', 'Symfony\\Component\\HttpKernel\\EventListener\\DebugHandlersListener');
343
344
        return $instance;
345
    }
346
347
    /*
348
     * Gets the 'faker.provider.foo' service.
349
     *
350
     * This service is shared.
351
     * This method always returns the same instance of the service.
352
     *
353
     * @return \Hautelook\AliceBundle\Tests\SymfonyApp\TestBundle\DataFixtures\Faker\Provider\FooProvider A Hautelook\AliceBundle\Tests\SymfonyApp\TestBundle\DataFixtures\Faker\Provider\FooProvider instance
354
     */
355
    protected function getFaker_Provider_FooService()
356
    {
357
        return $this->services['faker.provider.foo'] = new \Hautelook\AliceBundle\Tests\SymfonyApp\TestBundle\DataFixtures\Faker\Provider\FooProvider();
358
    }
359
360
    /*
361
     * Gets the 'file_locator' service.
362
     *
363
     * This service is shared.
364
     * This method always returns the same instance of the service.
365
     *
366
     * @return \Symfony\Component\HttpKernel\Config\FileLocator A Symfony\Component\HttpKernel\Config\FileLocator instance
367
     */
368
    protected function getFileLocatorService()
369
    {
370
        return $this->services['file_locator'] = new \Symfony\Component\HttpKernel\Config\FileLocator($this->get('kernel'), ($this->targetDirs[2].'/Resources'));
371
    }
372
373
    /*
374
     * Gets the 'filesystem' service.
375
     *
376
     * This service is shared.
377
     * This method always returns the same instance of the service.
378
     *
379
     * @return \Symfony\Component\Filesystem\Filesystem A Symfony\Component\Filesystem\Filesystem instance
380
     */
381
    protected function getFilesystemService()
382
    {
383
        return $this->services['filesystem'] = new \Symfony\Component\Filesystem\Filesystem();
384
    }
385
386
    /*
387
     * Gets the 'form.factory' service.
388
     *
389
     * This service is shared.
390
     * This method always returns the same instance of the service.
391
     *
392
     * @return \Symfony\Component\Form\FormFactory A Symfony\Component\Form\FormFactory instance
393
     */
394
    protected function getForm_FactoryService()
395
    {
396
        return $this->services['form.factory'] = new \Symfony\Component\Form\FormFactory($this->get('form.registry'), $this->get('form.resolved_type_factory'));
397
    }
398
399
    /*
400
     * Gets the 'form.registry' service.
401
     *
402
     * This service is shared.
403
     * This method always returns the same instance of the service.
404
     *
405
     * @return \Symfony\Component\Form\FormRegistry A Symfony\Component\Form\FormRegistry instance
406
     */
407
    protected function getForm_RegistryService()
408
    {
409
        return $this->services['form.registry'] = new \Symfony\Component\Form\FormRegistry(array(0 => new \Symfony\Component\Form\Extension\DependencyInjection\DependencyInjectionExtension($this, array('Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType' => 'form.type.form', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\ChoiceType' => 'form.type.choice'), 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.upload.validator'), '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'));
410
    }
411
412
    /*
413
     * Gets the 'form.resolved_type_factory' service.
414
     *
415
     * This service is shared.
416
     * This method always returns the same instance of the service.
417
     *
418
     * @return \Symfony\Component\Form\ResolvedFormTypeFactory A Symfony\Component\Form\ResolvedFormTypeFactory instance
419
     */
420
    protected function getForm_ResolvedTypeFactoryService()
421
    {
422
        return $this->services['form.resolved_type_factory'] = new \Symfony\Component\Form\ResolvedFormTypeFactory();
423
    }
424
425
    /*
426
     * Gets the 'form.type.birthday' service.
427
     *
428
     * This service is shared.
429
     * This method always returns the same instance of the service.
430
     *
431
     * @return \Symfony\Component\Form\Extension\Core\Type\BirthdayType A Symfony\Component\Form\Extension\Core\Type\BirthdayType instance
432
     *
433
     * @deprecated The "form.type.birthday" service is deprecated since Symfony 3.1 and will be removed in 4.0.
434
     */
435
    protected function getForm_Type_BirthdayService()
436
    {
437
        @trigger_error('The "form.type.birthday" service is deprecated since Symfony 3.1 and will be removed in 4.0.', E_USER_DEPRECATED);
0 ignored issues
show
Security Best Practice introduced by
It seems like you do not handle an error condition here. This can introduce security issues, and is generally not recommended.

If you suppress an error, we recommend checking for the error condition explicitly:

// For example instead of
@mkdir($dir);

// Better use
if (@mkdir($dir) === false) {
    throw new \RuntimeException('The directory '.$dir.' could not be created.');
}
Loading history...
438
439
        return $this->services['form.type.birthday'] = new \Symfony\Component\Form\Extension\Core\Type\BirthdayType();
440
    }
441
442
    /*
443
     * Gets the 'form.type.button' service.
444
     *
445
     * This service is shared.
446
     * This method always returns the same instance of the service.
447
     *
448
     * @return \Symfony\Component\Form\Extension\Core\Type\ButtonType A Symfony\Component\Form\Extension\Core\Type\ButtonType instance
449
     *
450
     * @deprecated The "form.type.button" service is deprecated since Symfony 3.1 and will be removed in 4.0.
451
     */
452
    protected function getForm_Type_ButtonService()
453
    {
454
        @trigger_error('The "form.type.button" service is deprecated since Symfony 3.1 and will be removed in 4.0.', E_USER_DEPRECATED);
0 ignored issues
show
Security Best Practice introduced by
It seems like you do not handle an error condition here. This can introduce security issues, and is generally not recommended.

If you suppress an error, we recommend checking for the error condition explicitly:

// For example instead of
@mkdir($dir);

// Better use
if (@mkdir($dir) === false) {
    throw new \RuntimeException('The directory '.$dir.' could not be created.');
}
Loading history...
455
456
        return $this->services['form.type.button'] = new \Symfony\Component\Form\Extension\Core\Type\ButtonType();
457
    }
458
459
    /*
460
     * Gets the 'form.type.checkbox' service.
461
     *
462
     * This service is shared.
463
     * This method always returns the same instance of the service.
464
     *
465
     * @return \Symfony\Component\Form\Extension\Core\Type\CheckboxType A Symfony\Component\Form\Extension\Core\Type\CheckboxType instance
466
     *
467
     * @deprecated The "form.type.checkbox" service is deprecated since Symfony 3.1 and will be removed in 4.0.
468
     */
469
    protected function getForm_Type_CheckboxService()
470
    {
471
        @trigger_error('The "form.type.checkbox" service is deprecated since Symfony 3.1 and will be removed in 4.0.', E_USER_DEPRECATED);
0 ignored issues
show
Security Best Practice introduced by
It seems like you do not handle an error condition here. This can introduce security issues, and is generally not recommended.

If you suppress an error, we recommend checking for the error condition explicitly:

// For example instead of
@mkdir($dir);

// Better use
if (@mkdir($dir) === false) {
    throw new \RuntimeException('The directory '.$dir.' could not be created.');
}
Loading history...
472
473
        return $this->services['form.type.checkbox'] = new \Symfony\Component\Form\Extension\Core\Type\CheckboxType();
474
    }
475
476
    /*
477
     * Gets the 'form.type.choice' service.
478
     *
479
     * This service is shared.
480
     * This method always returns the same instance of the service.
481
     *
482
     * @return \Symfony\Component\Form\Extension\Core\Type\ChoiceType A Symfony\Component\Form\Extension\Core\Type\ChoiceType instance
483
     */
484
    protected function getForm_Type_ChoiceService()
485
    {
486
        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'))));
487
    }
488
489
    /*
490
     * Gets the 'form.type.collection' service.
491
     *
492
     * This service is shared.
493
     * This method always returns the same instance of the service.
494
     *
495
     * @return \Symfony\Component\Form\Extension\Core\Type\CollectionType A Symfony\Component\Form\Extension\Core\Type\CollectionType instance
496
     *
497
     * @deprecated The "form.type.collection" service is deprecated since Symfony 3.1 and will be removed in 4.0.
498
     */
499
    protected function getForm_Type_CollectionService()
500
    {
501
        @trigger_error('The "form.type.collection" service is deprecated since Symfony 3.1 and will be removed in 4.0.', E_USER_DEPRECATED);
0 ignored issues
show
Security Best Practice introduced by
It seems like you do not handle an error condition here. This can introduce security issues, and is generally not recommended.

If you suppress an error, we recommend checking for the error condition explicitly:

// For example instead of
@mkdir($dir);

// Better use
if (@mkdir($dir) === false) {
    throw new \RuntimeException('The directory '.$dir.' could not be created.');
}
Loading history...
502
503
        return $this->services['form.type.collection'] = new \Symfony\Component\Form\Extension\Core\Type\CollectionType();
504
    }
505
506
    /*
507
     * Gets the 'form.type.country' service.
508
     *
509
     * This service is shared.
510
     * This method always returns the same instance of the service.
511
     *
512
     * @return \Symfony\Component\Form\Extension\Core\Type\CountryType A Symfony\Component\Form\Extension\Core\Type\CountryType instance
513
     *
514
     * @deprecated The "form.type.country" service is deprecated since Symfony 3.1 and will be removed in 4.0.
515
     */
516
    protected function getForm_Type_CountryService()
517
    {
518
        @trigger_error('The "form.type.country" service is deprecated since Symfony 3.1 and will be removed in 4.0.', E_USER_DEPRECATED);
0 ignored issues
show
Security Best Practice introduced by
It seems like you do not handle an error condition here. This can introduce security issues, and is generally not recommended.

If you suppress an error, we recommend checking for the error condition explicitly:

// For example instead of
@mkdir($dir);

// Better use
if (@mkdir($dir) === false) {
    throw new \RuntimeException('The directory '.$dir.' could not be created.');
}
Loading history...
519
520
        return $this->services['form.type.country'] = new \Symfony\Component\Form\Extension\Core\Type\CountryType();
521
    }
522
523
    /*
524
     * Gets the 'form.type.currency' service.
525
     *
526
     * This service is shared.
527
     * This method always returns the same instance of the service.
528
     *
529
     * @return \Symfony\Component\Form\Extension\Core\Type\CurrencyType A Symfony\Component\Form\Extension\Core\Type\CurrencyType instance
530
     *
531
     * @deprecated The "form.type.currency" service is deprecated since Symfony 3.1 and will be removed in 4.0.
532
     */
533
    protected function getForm_Type_CurrencyService()
534
    {
535
        @trigger_error('The "form.type.currency" service is deprecated since Symfony 3.1 and will be removed in 4.0.', E_USER_DEPRECATED);
0 ignored issues
show
Security Best Practice introduced by
It seems like you do not handle an error condition here. This can introduce security issues, and is generally not recommended.

If you suppress an error, we recommend checking for the error condition explicitly:

// For example instead of
@mkdir($dir);

// Better use
if (@mkdir($dir) === false) {
    throw new \RuntimeException('The directory '.$dir.' could not be created.');
}
Loading history...
536
537
        return $this->services['form.type.currency'] = new \Symfony\Component\Form\Extension\Core\Type\CurrencyType();
538
    }
539
540
    /*
541
     * Gets the 'form.type.date' service.
542
     *
543
     * This service is shared.
544
     * This method always returns the same instance of the service.
545
     *
546
     * @return \Symfony\Component\Form\Extension\Core\Type\DateType A Symfony\Component\Form\Extension\Core\Type\DateType instance
547
     *
548
     * @deprecated The "form.type.date" service is deprecated since Symfony 3.1 and will be removed in 4.0.
549
     */
550
    protected function getForm_Type_DateService()
551
    {
552
        @trigger_error('The "form.type.date" service is deprecated since Symfony 3.1 and will be removed in 4.0.', E_USER_DEPRECATED);
0 ignored issues
show
Security Best Practice introduced by
It seems like you do not handle an error condition here. This can introduce security issues, and is generally not recommended.

If you suppress an error, we recommend checking for the error condition explicitly:

// For example instead of
@mkdir($dir);

// Better use
if (@mkdir($dir) === false) {
    throw new \RuntimeException('The directory '.$dir.' could not be created.');
}
Loading history...
553
554
        return $this->services['form.type.date'] = new \Symfony\Component\Form\Extension\Core\Type\DateType();
555
    }
556
557
    /*
558
     * Gets the 'form.type.datetime' service.
559
     *
560
     * This service is shared.
561
     * This method always returns the same instance of the service.
562
     *
563
     * @return \Symfony\Component\Form\Extension\Core\Type\DateTimeType A Symfony\Component\Form\Extension\Core\Type\DateTimeType instance
564
     *
565
     * @deprecated The "form.type.datetime" service is deprecated since Symfony 3.1 and will be removed in 4.0.
566
     */
567
    protected function getForm_Type_DatetimeService()
568
    {
569
        @trigger_error('The "form.type.datetime" service is deprecated since Symfony 3.1 and will be removed in 4.0.', E_USER_DEPRECATED);
0 ignored issues
show
Security Best Practice introduced by
It seems like you do not handle an error condition here. This can introduce security issues, and is generally not recommended.

If you suppress an error, we recommend checking for the error condition explicitly:

// For example instead of
@mkdir($dir);

// Better use
if (@mkdir($dir) === false) {
    throw new \RuntimeException('The directory '.$dir.' could not be created.');
}
Loading history...
570
571
        return $this->services['form.type.datetime'] = new \Symfony\Component\Form\Extension\Core\Type\DateTimeType();
572
    }
573
574
    /*
575
     * Gets the 'form.type.email' 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\EmailType A Symfony\Component\Form\Extension\Core\Type\EmailType instance
581
     *
582
     * @deprecated The "form.type.email" service is deprecated since Symfony 3.1 and will be removed in 4.0.
583
     */
584
    protected function getForm_Type_EmailService()
585
    {
586
        @trigger_error('The "form.type.email" service is deprecated since Symfony 3.1 and will be removed in 4.0.', E_USER_DEPRECATED);
0 ignored issues
show
Security Best Practice introduced by
It seems like you do not handle an error condition here. This can introduce security issues, and is generally not recommended.

If you suppress an error, we recommend checking for the error condition explicitly:

// For example instead of
@mkdir($dir);

// Better use
if (@mkdir($dir) === false) {
    throw new \RuntimeException('The directory '.$dir.' could not be created.');
}
Loading history...
587
588
        return $this->services['form.type.email'] = new \Symfony\Component\Form\Extension\Core\Type\EmailType();
589
    }
590
591
    /*
592
     * Gets the 'form.type.file' service.
593
     *
594
     * This service is shared.
595
     * This method always returns the same instance of the service.
596
     *
597
     * @return \Symfony\Component\Form\Extension\Core\Type\FileType A Symfony\Component\Form\Extension\Core\Type\FileType instance
598
     *
599
     * @deprecated The "form.type.file" service is deprecated since Symfony 3.1 and will be removed in 4.0.
600
     */
601
    protected function getForm_Type_FileService()
602
    {
603
        @trigger_error('The "form.type.file" service is deprecated since Symfony 3.1 and will be removed in 4.0.', E_USER_DEPRECATED);
0 ignored issues
show
Security Best Practice introduced by
It seems like you do not handle an error condition here. This can introduce security issues, and is generally not recommended.

If you suppress an error, we recommend checking for the error condition explicitly:

// For example instead of
@mkdir($dir);

// Better use
if (@mkdir($dir) === false) {
    throw new \RuntimeException('The directory '.$dir.' could not be created.');
}
Loading history...
604
605
        return $this->services['form.type.file'] = new \Symfony\Component\Form\Extension\Core\Type\FileType();
606
    }
607
608
    /*
609
     * Gets the 'form.type.form' service.
610
     *
611
     * This service is shared.
612
     * This method always returns the same instance of the service.
613
     *
614
     * @return \Symfony\Component\Form\Extension\Core\Type\FormType A Symfony\Component\Form\Extension\Core\Type\FormType instance
615
     */
616
    protected function getForm_Type_FormService()
617
    {
618
        return $this->services['form.type.form'] = new \Symfony\Component\Form\Extension\Core\Type\FormType($this->get('property_accessor'));
619
    }
620
621
    /*
622
     * Gets the 'form.type.hidden' service.
623
     *
624
     * This service is shared.
625
     * This method always returns the same instance of the service.
626
     *
627
     * @return \Symfony\Component\Form\Extension\Core\Type\HiddenType A Symfony\Component\Form\Extension\Core\Type\HiddenType instance
628
     *
629
     * @deprecated The "form.type.hidden" service is deprecated since Symfony 3.1 and will be removed in 4.0.
630
     */
631
    protected function getForm_Type_HiddenService()
632
    {
633
        @trigger_error('The "form.type.hidden" service is deprecated since Symfony 3.1 and will be removed in 4.0.', E_USER_DEPRECATED);
0 ignored issues
show
Security Best Practice introduced by
It seems like you do not handle an error condition here. This can introduce security issues, and is generally not recommended.

If you suppress an error, we recommend checking for the error condition explicitly:

// For example instead of
@mkdir($dir);

// Better use
if (@mkdir($dir) === false) {
    throw new \RuntimeException('The directory '.$dir.' could not be created.');
}
Loading history...
634
635
        return $this->services['form.type.hidden'] = new \Symfony\Component\Form\Extension\Core\Type\HiddenType();
636
    }
637
638
    /*
639
     * Gets the 'form.type.integer' service.
640
     *
641
     * This service is shared.
642
     * This method always returns the same instance of the service.
643
     *
644
     * @return \Symfony\Component\Form\Extension\Core\Type\IntegerType A Symfony\Component\Form\Extension\Core\Type\IntegerType instance
645
     *
646
     * @deprecated The "form.type.integer" service is deprecated since Symfony 3.1 and will be removed in 4.0.
647
     */
648
    protected function getForm_Type_IntegerService()
649
    {
650
        @trigger_error('The "form.type.integer" service is deprecated since Symfony 3.1 and will be removed in 4.0.', E_USER_DEPRECATED);
0 ignored issues
show
Security Best Practice introduced by
It seems like you do not handle an error condition here. This can introduce security issues, and is generally not recommended.

If you suppress an error, we recommend checking for the error condition explicitly:

// For example instead of
@mkdir($dir);

// Better use
if (@mkdir($dir) === false) {
    throw new \RuntimeException('The directory '.$dir.' could not be created.');
}
Loading history...
651
652
        return $this->services['form.type.integer'] = new \Symfony\Component\Form\Extension\Core\Type\IntegerType();
653
    }
654
655
    /*
656
     * Gets the 'form.type.language' service.
657
     *
658
     * This service is shared.
659
     * This method always returns the same instance of the service.
660
     *
661
     * @return \Symfony\Component\Form\Extension\Core\Type\LanguageType A Symfony\Component\Form\Extension\Core\Type\LanguageType instance
662
     *
663
     * @deprecated The "form.type.language" service is deprecated since Symfony 3.1 and will be removed in 4.0.
664
     */
665
    protected function getForm_Type_LanguageService()
666
    {
667
        @trigger_error('The "form.type.language" service is deprecated since Symfony 3.1 and will be removed in 4.0.', E_USER_DEPRECATED);
0 ignored issues
show
Security Best Practice introduced by
It seems like you do not handle an error condition here. This can introduce security issues, and is generally not recommended.

If you suppress an error, we recommend checking for the error condition explicitly:

// For example instead of
@mkdir($dir);

// Better use
if (@mkdir($dir) === false) {
    throw new \RuntimeException('The directory '.$dir.' could not be created.');
}
Loading history...
668
669
        return $this->services['form.type.language'] = new \Symfony\Component\Form\Extension\Core\Type\LanguageType();
670
    }
671
672
    /*
673
     * Gets the 'form.type.locale' service.
674
     *
675
     * This service is shared.
676
     * This method always returns the same instance of the service.
677
     *
678
     * @return \Symfony\Component\Form\Extension\Core\Type\LocaleType A Symfony\Component\Form\Extension\Core\Type\LocaleType instance
679
     *
680
     * @deprecated The "form.type.locale" service is deprecated since Symfony 3.1 and will be removed in 4.0.
681
     */
682
    protected function getForm_Type_LocaleService()
683
    {
684
        @trigger_error('The "form.type.locale" service is deprecated since Symfony 3.1 and will be removed in 4.0.', E_USER_DEPRECATED);
0 ignored issues
show
Security Best Practice introduced by
It seems like you do not handle an error condition here. This can introduce security issues, and is generally not recommended.

If you suppress an error, we recommend checking for the error condition explicitly:

// For example instead of
@mkdir($dir);

// Better use
if (@mkdir($dir) === false) {
    throw new \RuntimeException('The directory '.$dir.' could not be created.');
}
Loading history...
685
686
        return $this->services['form.type.locale'] = new \Symfony\Component\Form\Extension\Core\Type\LocaleType();
687
    }
688
689
    /*
690
     * Gets the 'form.type.money' service.
691
     *
692
     * This service is shared.
693
     * This method always returns the same instance of the service.
694
     *
695
     * @return \Symfony\Component\Form\Extension\Core\Type\MoneyType A Symfony\Component\Form\Extension\Core\Type\MoneyType instance
696
     *
697
     * @deprecated The "form.type.money" service is deprecated since Symfony 3.1 and will be removed in 4.0.
698
     */
699
    protected function getForm_Type_MoneyService()
700
    {
701
        @trigger_error('The "form.type.money" service is deprecated since Symfony 3.1 and will be removed in 4.0.', E_USER_DEPRECATED);
0 ignored issues
show
Security Best Practice introduced by
It seems like you do not handle an error condition here. This can introduce security issues, and is generally not recommended.

If you suppress an error, we recommend checking for the error condition explicitly:

// For example instead of
@mkdir($dir);

// Better use
if (@mkdir($dir) === false) {
    throw new \RuntimeException('The directory '.$dir.' could not be created.');
}
Loading history...
702
703
        return $this->services['form.type.money'] = new \Symfony\Component\Form\Extension\Core\Type\MoneyType();
704
    }
705
706
    /*
707
     * Gets the 'form.type.number' service.
708
     *
709
     * This service is shared.
710
     * This method always returns the same instance of the service.
711
     *
712
     * @return \Symfony\Component\Form\Extension\Core\Type\NumberType A Symfony\Component\Form\Extension\Core\Type\NumberType instance
713
     *
714
     * @deprecated The "form.type.number" service is deprecated since Symfony 3.1 and will be removed in 4.0.
715
     */
716
    protected function getForm_Type_NumberService()
717
    {
718
        @trigger_error('The "form.type.number" service is deprecated since Symfony 3.1 and will be removed in 4.0.', E_USER_DEPRECATED);
0 ignored issues
show
Security Best Practice introduced by
It seems like you do not handle an error condition here. This can introduce security issues, and is generally not recommended.

If you suppress an error, we recommend checking for the error condition explicitly:

// For example instead of
@mkdir($dir);

// Better use
if (@mkdir($dir) === false) {
    throw new \RuntimeException('The directory '.$dir.' could not be created.');
}
Loading history...
719
720
        return $this->services['form.type.number'] = new \Symfony\Component\Form\Extension\Core\Type\NumberType();
721
    }
722
723
    /*
724
     * Gets the 'form.type.password' service.
725
     *
726
     * This service is shared.
727
     * This method always returns the same instance of the service.
728
     *
729
     * @return \Symfony\Component\Form\Extension\Core\Type\PasswordType A Symfony\Component\Form\Extension\Core\Type\PasswordType instance
730
     *
731
     * @deprecated The "form.type.password" service is deprecated since Symfony 3.1 and will be removed in 4.0.
732
     */
733
    protected function getForm_Type_PasswordService()
734
    {
735
        @trigger_error('The "form.type.password" service is deprecated since Symfony 3.1 and will be removed in 4.0.', E_USER_DEPRECATED);
0 ignored issues
show
Security Best Practice introduced by
It seems like you do not handle an error condition here. This can introduce security issues, and is generally not recommended.

If you suppress an error, we recommend checking for the error condition explicitly:

// For example instead of
@mkdir($dir);

// Better use
if (@mkdir($dir) === false) {
    throw new \RuntimeException('The directory '.$dir.' could not be created.');
}
Loading history...
736
737
        return $this->services['form.type.password'] = new \Symfony\Component\Form\Extension\Core\Type\PasswordType();
738
    }
739
740
    /*
741
     * Gets the 'form.type.percent' service.
742
     *
743
     * This service is shared.
744
     * This method always returns the same instance of the service.
745
     *
746
     * @return \Symfony\Component\Form\Extension\Core\Type\PercentType A Symfony\Component\Form\Extension\Core\Type\PercentType instance
747
     *
748
     * @deprecated The "form.type.percent" service is deprecated since Symfony 3.1 and will be removed in 4.0.
749
     */
750
    protected function getForm_Type_PercentService()
751
    {
752
        @trigger_error('The "form.type.percent" service is deprecated since Symfony 3.1 and will be removed in 4.0.', E_USER_DEPRECATED);
0 ignored issues
show
Security Best Practice introduced by
It seems like you do not handle an error condition here. This can introduce security issues, and is generally not recommended.

If you suppress an error, we recommend checking for the error condition explicitly:

// For example instead of
@mkdir($dir);

// Better use
if (@mkdir($dir) === false) {
    throw new \RuntimeException('The directory '.$dir.' could not be created.');
}
Loading history...
753
754
        return $this->services['form.type.percent'] = new \Symfony\Component\Form\Extension\Core\Type\PercentType();
755
    }
756
757
    /*
758
     * Gets the 'form.type.radio' service.
759
     *
760
     * This service is shared.
761
     * This method always returns the same instance of the service.
762
     *
763
     * @return \Symfony\Component\Form\Extension\Core\Type\RadioType A Symfony\Component\Form\Extension\Core\Type\RadioType instance
764
     *
765
     * @deprecated The "form.type.radio" service is deprecated since Symfony 3.1 and will be removed in 4.0.
766
     */
767
    protected function getForm_Type_RadioService()
768
    {
769
        @trigger_error('The "form.type.radio" service is deprecated since Symfony 3.1 and will be removed in 4.0.', E_USER_DEPRECATED);
0 ignored issues
show
Security Best Practice introduced by
It seems like you do not handle an error condition here. This can introduce security issues, and is generally not recommended.

If you suppress an error, we recommend checking for the error condition explicitly:

// For example instead of
@mkdir($dir);

// Better use
if (@mkdir($dir) === false) {
    throw new \RuntimeException('The directory '.$dir.' could not be created.');
}
Loading history...
770
771
        return $this->services['form.type.radio'] = new \Symfony\Component\Form\Extension\Core\Type\RadioType();
772
    }
773
774
    /*
775
     * Gets the 'form.type.range' service.
776
     *
777
     * This service is shared.
778
     * This method always returns the same instance of the service.
779
     *
780
     * @return \Symfony\Component\Form\Extension\Core\Type\RangeType A Symfony\Component\Form\Extension\Core\Type\RangeType instance
781
     *
782
     * @deprecated The "form.type.range" service is deprecated since Symfony 3.1 and will be removed in 4.0.
783
     */
784
    protected function getForm_Type_RangeService()
785
    {
786
        @trigger_error('The "form.type.range" service is deprecated since Symfony 3.1 and will be removed in 4.0.', E_USER_DEPRECATED);
0 ignored issues
show
Security Best Practice introduced by
It seems like you do not handle an error condition here. This can introduce security issues, and is generally not recommended.

If you suppress an error, we recommend checking for the error condition explicitly:

// For example instead of
@mkdir($dir);

// Better use
if (@mkdir($dir) === false) {
    throw new \RuntimeException('The directory '.$dir.' could not be created.');
}
Loading history...
787
788
        return $this->services['form.type.range'] = new \Symfony\Component\Form\Extension\Core\Type\RangeType();
789
    }
790
791
    /*
792
     * Gets the 'form.type.repeated' service.
793
     *
794
     * This service is shared.
795
     * This method always returns the same instance of the service.
796
     *
797
     * @return \Symfony\Component\Form\Extension\Core\Type\RepeatedType A Symfony\Component\Form\Extension\Core\Type\RepeatedType instance
798
     *
799
     * @deprecated The "form.type.repeated" service is deprecated since Symfony 3.1 and will be removed in 4.0.
800
     */
801
    protected function getForm_Type_RepeatedService()
802
    {
803
        @trigger_error('The "form.type.repeated" service is deprecated since Symfony 3.1 and will be removed in 4.0.', E_USER_DEPRECATED);
0 ignored issues
show
Security Best Practice introduced by
It seems like you do not handle an error condition here. This can introduce security issues, and is generally not recommended.

If you suppress an error, we recommend checking for the error condition explicitly:

// For example instead of
@mkdir($dir);

// Better use
if (@mkdir($dir) === false) {
    throw new \RuntimeException('The directory '.$dir.' could not be created.');
}
Loading history...
804
805
        return $this->services['form.type.repeated'] = new \Symfony\Component\Form\Extension\Core\Type\RepeatedType();
806
    }
807
808
    /*
809
     * Gets the 'form.type.reset' 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\ResetType A Symfony\Component\Form\Extension\Core\Type\ResetType instance
815
     *
816
     * @deprecated The "form.type.reset" service is deprecated since Symfony 3.1 and will be removed in 4.0.
817
     */
818
    protected function getForm_Type_ResetService()
819
    {
820
        @trigger_error('The "form.type.reset" service is deprecated since Symfony 3.1 and will be removed in 4.0.', E_USER_DEPRECATED);
0 ignored issues
show
Security Best Practice introduced by
It seems like you do not handle an error condition here. This can introduce security issues, and is generally not recommended.

If you suppress an error, we recommend checking for the error condition explicitly:

// For example instead of
@mkdir($dir);

// Better use
if (@mkdir($dir) === false) {
    throw new \RuntimeException('The directory '.$dir.' could not be created.');
}
Loading history...
821
822
        return $this->services['form.type.reset'] = new \Symfony\Component\Form\Extension\Core\Type\ResetType();
823
    }
824
825
    /*
826
     * Gets the 'form.type.search' service.
827
     *
828
     * This service is shared.
829
     * This method always returns the same instance of the service.
830
     *
831
     * @return \Symfony\Component\Form\Extension\Core\Type\SearchType A Symfony\Component\Form\Extension\Core\Type\SearchType instance
832
     *
833
     * @deprecated The "form.type.search" service is deprecated since Symfony 3.1 and will be removed in 4.0.
834
     */
835
    protected function getForm_Type_SearchService()
836
    {
837
        @trigger_error('The "form.type.search" service is deprecated since Symfony 3.1 and will be removed in 4.0.', E_USER_DEPRECATED);
0 ignored issues
show
Security Best Practice introduced by
It seems like you do not handle an error condition here. This can introduce security issues, and is generally not recommended.

If you suppress an error, we recommend checking for the error condition explicitly:

// For example instead of
@mkdir($dir);

// Better use
if (@mkdir($dir) === false) {
    throw new \RuntimeException('The directory '.$dir.' could not be created.');
}
Loading history...
838
839
        return $this->services['form.type.search'] = new \Symfony\Component\Form\Extension\Core\Type\SearchType();
840
    }
841
842
    /*
843
     * Gets the 'form.type.submit' service.
844
     *
845
     * This service is shared.
846
     * This method always returns the same instance of the service.
847
     *
848
     * @return \Symfony\Component\Form\Extension\Core\Type\SubmitType A Symfony\Component\Form\Extension\Core\Type\SubmitType instance
849
     *
850
     * @deprecated The "form.type.submit" service is deprecated since Symfony 3.1 and will be removed in 4.0.
851
     */
852
    protected function getForm_Type_SubmitService()
853
    {
854
        @trigger_error('The "form.type.submit" service is deprecated since Symfony 3.1 and will be removed in 4.0.', E_USER_DEPRECATED);
0 ignored issues
show
Security Best Practice introduced by
It seems like you do not handle an error condition here. This can introduce security issues, and is generally not recommended.

If you suppress an error, we recommend checking for the error condition explicitly:

// For example instead of
@mkdir($dir);

// Better use
if (@mkdir($dir) === false) {
    throw new \RuntimeException('The directory '.$dir.' could not be created.');
}
Loading history...
855
856
        return $this->services['form.type.submit'] = new \Symfony\Component\Form\Extension\Core\Type\SubmitType();
857
    }
858
859
    /*
860
     * Gets the 'form.type.text' service.
861
     *
862
     * This service is shared.
863
     * This method always returns the same instance of the service.
864
     *
865
     * @return \Symfony\Component\Form\Extension\Core\Type\TextType A Symfony\Component\Form\Extension\Core\Type\TextType instance
866
     *
867
     * @deprecated The "form.type.text" service is deprecated since Symfony 3.1 and will be removed in 4.0.
868
     */
869
    protected function getForm_Type_TextService()
870
    {
871
        @trigger_error('The "form.type.text" service is deprecated since Symfony 3.1 and will be removed in 4.0.', E_USER_DEPRECATED);
0 ignored issues
show
Security Best Practice introduced by
It seems like you do not handle an error condition here. This can introduce security issues, and is generally not recommended.

If you suppress an error, we recommend checking for the error condition explicitly:

// For example instead of
@mkdir($dir);

// Better use
if (@mkdir($dir) === false) {
    throw new \RuntimeException('The directory '.$dir.' could not be created.');
}
Loading history...
872
873
        return $this->services['form.type.text'] = new \Symfony\Component\Form\Extension\Core\Type\TextType();
874
    }
875
876
    /*
877
     * Gets the 'form.type.textarea' service.
878
     *
879
     * This service is shared.
880
     * This method always returns the same instance of the service.
881
     *
882
     * @return \Symfony\Component\Form\Extension\Core\Type\TextareaType A Symfony\Component\Form\Extension\Core\Type\TextareaType instance
883
     *
884
     * @deprecated The "form.type.textarea" service is deprecated since Symfony 3.1 and will be removed in 4.0.
885
     */
886
    protected function getForm_Type_TextareaService()
887
    {
888
        @trigger_error('The "form.type.textarea" service is deprecated since Symfony 3.1 and will be removed in 4.0.', E_USER_DEPRECATED);
0 ignored issues
show
Security Best Practice introduced by
It seems like you do not handle an error condition here. This can introduce security issues, and is generally not recommended.

If you suppress an error, we recommend checking for the error condition explicitly:

// For example instead of
@mkdir($dir);

// Better use
if (@mkdir($dir) === false) {
    throw new \RuntimeException('The directory '.$dir.' could not be created.');
}
Loading history...
889
890
        return $this->services['form.type.textarea'] = new \Symfony\Component\Form\Extension\Core\Type\TextareaType();
891
    }
892
893
    /*
894
     * Gets the 'form.type.time' service.
895
     *
896
     * This service is shared.
897
     * This method always returns the same instance of the service.
898
     *
899
     * @return \Symfony\Component\Form\Extension\Core\Type\TimeType A Symfony\Component\Form\Extension\Core\Type\TimeType instance
900
     *
901
     * @deprecated The "form.type.time" service is deprecated since Symfony 3.1 and will be removed in 4.0.
902
     */
903
    protected function getForm_Type_TimeService()
904
    {
905
        @trigger_error('The "form.type.time" service is deprecated since Symfony 3.1 and will be removed in 4.0.', E_USER_DEPRECATED);
0 ignored issues
show
Security Best Practice introduced by
It seems like you do not handle an error condition here. This can introduce security issues, and is generally not recommended.

If you suppress an error, we recommend checking for the error condition explicitly:

// For example instead of
@mkdir($dir);

// Better use
if (@mkdir($dir) === false) {
    throw new \RuntimeException('The directory '.$dir.' could not be created.');
}
Loading history...
906
907
        return $this->services['form.type.time'] = new \Symfony\Component\Form\Extension\Core\Type\TimeType();
908
    }
909
910
    /*
911
     * Gets the 'form.type.timezone' service.
912
     *
913
     * This service is shared.
914
     * This method always returns the same instance of the service.
915
     *
916
     * @return \Symfony\Component\Form\Extension\Core\Type\TimezoneType A Symfony\Component\Form\Extension\Core\Type\TimezoneType instance
917
     *
918
     * @deprecated The "form.type.timezone" service is deprecated since Symfony 3.1 and will be removed in 4.0.
919
     */
920
    protected function getForm_Type_TimezoneService()
921
    {
922
        @trigger_error('The "form.type.timezone" service is deprecated since Symfony 3.1 and will be removed in 4.0.', E_USER_DEPRECATED);
0 ignored issues
show
Security Best Practice introduced by
It seems like you do not handle an error condition here. This can introduce security issues, and is generally not recommended.

If you suppress an error, we recommend checking for the error condition explicitly:

// For example instead of
@mkdir($dir);

// Better use
if (@mkdir($dir) === false) {
    throw new \RuntimeException('The directory '.$dir.' could not be created.');
}
Loading history...
923
924
        return $this->services['form.type.timezone'] = new \Symfony\Component\Form\Extension\Core\Type\TimezoneType();
925
    }
926
927
    /*
928
     * Gets the 'form.type.url' service.
929
     *
930
     * This service is shared.
931
     * This method always returns the same instance of the service.
932
     *
933
     * @return \Symfony\Component\Form\Extension\Core\Type\UrlType A Symfony\Component\Form\Extension\Core\Type\UrlType instance
934
     *
935
     * @deprecated The "form.type.url" service is deprecated since Symfony 3.1 and will be removed in 4.0.
936
     */
937
    protected function getForm_Type_UrlService()
938
    {
939
        @trigger_error('The "form.type.url" service is deprecated since Symfony 3.1 and will be removed in 4.0.', E_USER_DEPRECATED);
0 ignored issues
show
Security Best Practice introduced by
It seems like you do not handle an error condition here. This can introduce security issues, and is generally not recommended.

If you suppress an error, we recommend checking for the error condition explicitly:

// For example instead of
@mkdir($dir);

// Better use
if (@mkdir($dir) === false) {
    throw new \RuntimeException('The directory '.$dir.' could not be created.');
}
Loading history...
940
941
        return $this->services['form.type.url'] = new \Symfony\Component\Form\Extension\Core\Type\UrlType();
942
    }
943
944
    /*
945
     * Gets the 'form.type_extension.form.http_foundation' service.
946
     *
947
     * This service is shared.
948
     * This method always returns the same instance of the service.
949
     *
950
     * @return \Symfony\Component\Form\Extension\HttpFoundation\Type\FormTypeHttpFoundationExtension A Symfony\Component\Form\Extension\HttpFoundation\Type\FormTypeHttpFoundationExtension instance
951
     */
952
    protected function getForm_TypeExtension_Form_HttpFoundationService()
953
    {
954
        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'))));
955
    }
956
957
    /*
958
     * Gets the 'form.type_extension.form.validator' service.
959
     *
960
     * This service is shared.
961
     * This method always returns the same instance of the service.
962
     *
963
     * @return \Symfony\Component\Form\Extension\Validator\Type\FormTypeValidatorExtension A Symfony\Component\Form\Extension\Validator\Type\FormTypeValidatorExtension instance
964
     */
965
    protected function getForm_TypeExtension_Form_ValidatorService()
966
    {
967
        return $this->services['form.type_extension.form.validator'] = new \Symfony\Component\Form\Extension\Validator\Type\FormTypeValidatorExtension($this->get('validator'));
968
    }
969
970
    /*
971
     * Gets the 'form.type_extension.repeated.validator' service.
972
     *
973
     * This service is shared.
974
     * This method always returns the same instance of the service.
975
     *
976
     * @return \Symfony\Component\Form\Extension\Validator\Type\RepeatedTypeValidatorExtension A Symfony\Component\Form\Extension\Validator\Type\RepeatedTypeValidatorExtension instance
977
     */
978
    protected function getForm_TypeExtension_Repeated_ValidatorService()
979
    {
980
        return $this->services['form.type_extension.repeated.validator'] = new \Symfony\Component\Form\Extension\Validator\Type\RepeatedTypeValidatorExtension();
981
    }
982
983
    /*
984
     * Gets the 'form.type_extension.submit.validator' service.
985
     *
986
     * This service is shared.
987
     * This method always returns the same instance of the service.
988
     *
989
     * @return \Symfony\Component\Form\Extension\Validator\Type\SubmitTypeValidatorExtension A Symfony\Component\Form\Extension\Validator\Type\SubmitTypeValidatorExtension instance
990
     */
991
    protected function getForm_TypeExtension_Submit_ValidatorService()
992
    {
993
        return $this->services['form.type_extension.submit.validator'] = new \Symfony\Component\Form\Extension\Validator\Type\SubmitTypeValidatorExtension();
994
    }
995
996
    /*
997
     * Gets the 'form.type_extension.upload.validator' service.
998
     *
999
     * This service is shared.
1000
     * This method always returns the same instance of the service.
1001
     *
1002
     * @return \Symfony\Component\Form\Extension\Validator\Type\UploadValidatorExtension A Symfony\Component\Form\Extension\Validator\Type\UploadValidatorExtension instance
1003
     */
1004
    protected function getForm_TypeExtension_Upload_ValidatorService()
1005
    {
1006
        return $this->services['form.type_extension.upload.validator'] = new \Symfony\Component\Form\Extension\Validator\Type\UploadValidatorExtension($this->get('translator'), 'validators');
1007
    }
1008
1009
    /*
1010
     * Gets the 'form.type_guesser.validator' service.
1011
     *
1012
     * This service is shared.
1013
     * This method always returns the same instance of the service.
1014
     *
1015
     * @return \Symfony\Component\Form\Extension\Validator\ValidatorTypeGuesser A Symfony\Component\Form\Extension\Validator\ValidatorTypeGuesser instance
1016
     */
1017
    protected function getForm_TypeGuesser_ValidatorService()
1018
    {
1019
        return $this->services['form.type_guesser.validator'] = new \Symfony\Component\Form\Extension\Validator\ValidatorTypeGuesser($this->get('validator'));
1020
    }
1021
1022
    /*
1023
     * Gets the 'fragment.handler' service.
1024
     *
1025
     * This service is shared.
1026
     * This method always returns the same instance of the service.
1027
     *
1028
     * @return \Symfony\Component\HttpKernel\DependencyInjection\LazyLoadingFragmentHandler A Symfony\Component\HttpKernel\DependencyInjection\LazyLoadingFragmentHandler instance
1029
     */
1030 View Code Duplication
    protected function getFragment_HandlerService()
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
1031
    {
1032
        $this->services['fragment.handler'] = $instance = new \Symfony\Component\HttpKernel\DependencyInjection\LazyLoadingFragmentHandler($this, $this->get('request_stack'), false);
1033
1034
        $instance->addRendererService('inline', 'fragment.renderer.inline');
1035
        $instance->addRendererService('esi', 'fragment.renderer.esi');
1036
        $instance->addRendererService('ssi', 'fragment.renderer.ssi');
1037
1038
        return $instance;
1039
    }
1040
1041
    /*
1042
     * Gets the 'fragment.renderer.esi' service.
1043
     *
1044
     * This service is shared.
1045
     * This method always returns the same instance of the service.
1046
     *
1047
     * @return \Symfony\Component\HttpKernel\Fragment\EsiFragmentRenderer A Symfony\Component\HttpKernel\Fragment\EsiFragmentRenderer instance
1048
     */
1049 View Code Duplication
    protected function getFragment_Renderer_EsiService()
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
1050
    {
1051
        $this->services['fragment.renderer.esi'] = $instance = new \Symfony\Component\HttpKernel\Fragment\EsiFragmentRenderer(NULL, $this->get('fragment.renderer.inline'), $this->get('uri_signer'));
1052
1053
        $instance->setFragmentPath('/_fragment');
1054
1055
        return $instance;
1056
    }
1057
1058
    /*
1059
     * Gets the 'fragment.renderer.hinclude' service.
1060
     *
1061
     * This service is shared.
1062
     * This method always returns the same instance of the service.
1063
     *
1064
     * @return \Symfony\Component\HttpKernel\Fragment\HIncludeFragmentRenderer A Symfony\Component\HttpKernel\Fragment\HIncludeFragmentRenderer instance
1065
     */
1066 View Code Duplication
    protected function getFragment_Renderer_HincludeService()
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
1067
    {
1068
        $this->services['fragment.renderer.hinclude'] = $instance = new \Symfony\Component\HttpKernel\Fragment\HIncludeFragmentRenderer('', $this->get('uri_signer'), '');
0 ignored issues
show
Documentation introduced by
'' is of type string, but the function expects a object<Symfony\Component...<Twig_Environment>|null.

It seems like the type of the argument is not accepted by the function/method which you are calling.

In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.

We suggest to add an explicit type cast like in the following example:

function acceptsInteger($int) { }

$x = '123'; // string "123"

// Instead of
acceptsInteger($x);

// we recommend to use
acceptsInteger((integer) $x);
Loading history...
1069
1070
        $instance->setFragmentPath('/_fragment');
1071
1072
        return $instance;
1073
    }
1074
1075
    /*
1076
     * Gets the 'fragment.renderer.inline' service.
1077
     *
1078
     * This service is shared.
1079
     * This method always returns the same instance of the service.
1080
     *
1081
     * @return \Symfony\Component\HttpKernel\Fragment\InlineFragmentRenderer A Symfony\Component\HttpKernel\Fragment\InlineFragmentRenderer instance
1082
     */
1083 View Code Duplication
    protected function getFragment_Renderer_InlineService()
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
1084
    {
1085
        $this->services['fragment.renderer.inline'] = $instance = new \Symfony\Component\HttpKernel\Fragment\InlineFragmentRenderer($this->get('http_kernel'), $this->get('event_dispatcher'));
1086
1087
        $instance->setFragmentPath('/_fragment');
1088
1089
        return $instance;
1090
    }
1091
1092
    /*
1093
     * Gets the 'fragment.renderer.ssi' service.
1094
     *
1095
     * This service is shared.
1096
     * This method always returns the same instance of the service.
1097
     *
1098
     * @return \Symfony\Component\HttpKernel\Fragment\SsiFragmentRenderer A Symfony\Component\HttpKernel\Fragment\SsiFragmentRenderer instance
1099
     */
1100 View Code Duplication
    protected function getFragment_Renderer_SsiService()
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
1101
    {
1102
        $this->services['fragment.renderer.ssi'] = $instance = new \Symfony\Component\HttpKernel\Fragment\SsiFragmentRenderer(NULL, $this->get('fragment.renderer.inline'), $this->get('uri_signer'));
1103
1104
        $instance->setFragmentPath('/_fragment');
1105
1106
        return $instance;
1107
    }
1108
1109
    /*
1110
     * Gets the 'hautelook_alice.alice.fixtures.loader' service.
1111
     *
1112
     * This service is shared.
1113
     * This method always returns the same instance of the service.
1114
     *
1115
     * @return \Hautelook\AliceBundle\Alice\DataFixtures\Fixtures\SimpleLoader A Hautelook\AliceBundle\Alice\DataFixtures\Fixtures\SimpleLoader instance
1116
     */
1117
    protected function getHautelookAlice_Alice_Fixtures_LoaderService()
1118
    {
1119
        return $this->services['hautelook_alice.alice.fixtures.loader'] = new \Hautelook\AliceBundle\Alice\DataFixtures\Fixtures\Loader('en_US', $this->get('hautelook_alice.faker.provider_chain'), 1, array('kernel.root_dir' => $this->targetDirs[2], 'kernel.environment' => 'test', 'kernel.debug' => false, 'kernel.name' => 'SymfonyApp', 'kernel.cache_dir' => __DIR__, 'kernel.logs_dir' => ($this->targetDirs[2].'/logs'), 'kernel.bundles' => array('FrameworkBundle' => 'Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle', 'HautelookAliceBundle' => 'Hautelook\\AliceBundle\\HautelookAliceBundle', 'TestBundle' => 'Hautelook\\AliceBundle\\Tests\\SymfonyApp\\TestBundle\\TestBundle', 'TestABundle' => 'Hautelook\\AliceBundle\\Tests\\SymfonyApp\\TestBundle\\Bundle\\ABundle\\TestABundle', 'TestBBundle' => 'Hautelook\\AliceBundle\\Tests\\SymfonyApp\\TestBundle\\Bundle\\BBundle\\TestBBundle', 'TestCBundle' => 'Hautelook\\AliceBundle\\Tests\\SymfonyApp\\TestBundle\\Bundle\\CBundle\\TestCBundle', 'TestDBundle' => 'Hautelook\\AliceBundle\\Tests\\SymfonyApp\\TestBundle\\Bundle\\DBundle\\TestDBundle'), 'kernel.charset' => 'UTF-8', 'kernel.container_class' => 'SymfonyAppTestProjectContainer', 'test_app.random' => 'Random parameter', 'fragment.renderer.hinclude.global_template' => '', 'fragment.path' => '/_fragment', 'kernel.secret' => 'test', 'kernel.http_method_override' => true, 'kernel.trusted_hosts' => array(), 'kernel.trusted_proxies' => array(), 'kernel.default_locale' => 'en', 'test.client.parameters' => array(), 'session.metadata.storage_key' => '_sf2_meta', 'session.storage.options' => array('cookie_httponly' => true, 'gc_probability' => 1), 'session.save_path' => (__DIR__.'/sessions'), 'session.metadata.update_threshold' => '0', 'form.type_extension.csrf.enabled' => false, 'validator.mapping.cache.prefix' => 'validator_bdf591ac10e8912f78555b77dae08559ebb19386050c997ee7b01ec764bf4b17', 'validator.translation_domain' => 'validators', 'data_collector.templates' => array(), 'router.options.generator_class' => 'Symfony\\Component\\Routing\\Generator\\UrlGenerator', 'router.options.generator_base_class' => 'Symfony\\Component\\Routing\\Generator\\UrlGenerator', 'router.options.generator_dumper_class' => 'Symfony\\Component\\Routing\\Generator\\Dumper\\PhpGeneratorDumper', 'router.options.matcher_class' => 'Symfony\\Bundle\\FrameworkBundle\\Routing\\RedirectableUrlMatcher', 'router.options.matcher_base_class' => 'Symfony\\Bundle\\FrameworkBundle\\Routing\\RedirectableUrlMatcher', 'router.options.matcher_dumper_class' => 'Symfony\\Component\\Routing\\Matcher\\Dumper\\PhpMatcherDumper', 'router.options.matcher.cache_class' => 'SymfonyAppTestUrlMatcher', 'router.options.generator.cache_class' => 'SymfonyAppTestUrlGenerator', 'router.request_context.host' => 'localhost', 'router.request_context.scheme' => 'http', 'router.request_context.base_url' => '', 'router.resource' => ($this->targetDirs[2].'/config/routing.yml'), 'router.cache_class_prefix' => 'SymfonyAppTest', 'request_listener.http_port' => 80, 'request_listener.https_port' => 443, 'debug.error_handler.throw_at' => 0, 'hautelook_alice.db_drivers' => array('orm' => NULL, 'mongodb' => NULL, 'phpcr' => NULL), 'hautelook_alice.locale' => 'en_US', 'hautelook_alice.seed' => 1, 'hautelook_alice.persist_once' => false, 'hautelook_alice.loading_limit' => 5));
1120
    }
1121
1122
    /*
1123
     * Gets the 'hautelook_alice.alice.processor_chain' service.
1124
     *
1125
     * This service is shared.
1126
     * This method always returns the same instance of the service.
1127
     *
1128
     * @param bool    $lazyLoad whether to try lazy-loading the service with a proxy
1129
     *
1130
     * @return \Hautelook\AliceBundle\Alice\ProcessorChain A Hautelook\AliceBundle\Alice\ProcessorChain instance
1131
     */
1132
    protected function getHautelookAlice_Alice_ProcessorChainService($lazyLoad = true)
0 ignored issues
show
Unused Code introduced by
The parameter $lazyLoad is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1133
    {
1134
        return $this->services['hautelook_alice.alice.processor_chain'] = new \Hautelook\AliceBundle\Alice\ProcessorChain(array(0 => $this->get('alice.processor.entity_managers')));
1135
    }
1136
1137
    /*
1138
     * Gets the 'hautelook_alice.bundle_resolver' service.
1139
     *
1140
     * This service is shared.
1141
     * This method always returns the same instance of the service.
1142
     *
1143
     * @return \Hautelook\AliceBundle\Resolver\SimpleBundleResolver A Hautelook\AliceBundle\Resolver\SimpleBundleResolver instance
1144
     */
1145
    protected function getHautelookAlice_BundleResolverService()
1146
    {
1147
        return $this->services['hautelook_alice.bundle_resolver'] = new \Hautelook\AliceBundle\Resolver\SimpleBundleResolver();
1148
    }
1149
1150
    /*
1151
     * Gets the 'hautelook_alice.doctrine.command_factory' service.
1152
     *
1153
     * This service is shared.
1154
     * This method always returns the same instance of the service.
1155
     *
1156
     * @param bool    $lazyLoad whether to try lazy-loading the service with a proxy
1157
     *
1158
     * @return \Hautelook\AliceBundle\Doctrine\Command\CommandFactory A Hautelook\AliceBundle\Doctrine\Command\CommandFactory instance
1159
     */
1160
    protected function getHautelookAlice_Doctrine_CommandFactoryService($lazyLoad = true)
0 ignored issues
show
Unused Code introduced by
The parameter $lazyLoad is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1161
    {
1162
        return $this->services['hautelook_alice.doctrine.command_factory'] = new \Hautelook\AliceBundle\Doctrine\Command\CommandFactory();
1163
    }
1164
1165
    /*
1166
     * Gets the 'hautelook_alice.doctrine.executor.fixtures_executor' service.
1167
     *
1168
     * This service is shared.
1169
     * This method always returns the same instance of the service.
1170
     *
1171
     * @param bool    $lazyLoad whether to try lazy-loading the service with a proxy
1172
     *
1173
     * @return \Hautelook\AliceBundle\Doctrine\DataFixtures\Executor\FixturesExecutor A Hautelook\AliceBundle\Doctrine\DataFixtures\Executor\FixturesExecutor instance
1174
     */
1175
    protected function getHautelookAlice_Doctrine_Executor_FixturesExecutorService($lazyLoad = true)
0 ignored issues
show
Unused Code introduced by
The parameter $lazyLoad is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1176
    {
1177
        return $this->services['hautelook_alice.doctrine.executor.fixtures_executor'] = new \Hautelook\AliceBundle\Doctrine\DataFixtures\Executor\FixturesExecutor();
1178
    }
1179
1180
    /*
1181
     * Gets the 'hautelook_alice.faker' service.
1182
     *
1183
     * This service is shared.
1184
     * This method always returns the same instance of the service.
1185
     *
1186
     * @param bool    $lazyLoad whether to try lazy-loading the service with a proxy
1187
     *
1188
     * @return \Faker\Generator A Faker\Generator instance
1189
     */
1190 View Code Duplication
    protected function getHautelookAlice_FakerService($lazyLoad = true)
0 ignored issues
show
Unused Code introduced by
The parameter $lazyLoad is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
1191
    {
1192
        $this->services['hautelook_alice.faker'] = $instance = \Faker\Factory::create('en_US');
1193
1194
        $instance->seed(1);
1195
        $instance->addProvider($this->get('faker.provider.foo'));
1196
1197
        return $instance;
1198
    }
1199
1200
    /*
1201
     * Gets the 'hautelook_alice.faker.provider_chain' service.
1202
     *
1203
     * This service is shared.
1204
     * This method always returns the same instance of the service.
1205
     *
1206
     * @param bool    $lazyLoad whether to try lazy-loading the service with a proxy
1207
     *
1208
     * @return \Hautelook\AliceBundle\Faker\Provider\ProviderChain A Hautelook\AliceBundle\Faker\Provider\ProviderChain instance
1209
     */
1210
    protected function getHautelookAlice_Faker_ProviderChainService($lazyLoad = true)
0 ignored issues
show
Unused Code introduced by
The parameter $lazyLoad is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
1211
    {
1212
        return $this->services['hautelook_alice.faker.provider_chain'] = new \Hautelook\AliceBundle\Faker\Provider\ProviderChain(array(0 => $this->get('faker.provider.foo')));
1213
    }
1214
1215
    /*
1216
     * Gets the 'hautelook_alice.fixtures.loader' service.
1217
     *
1218
     * This service is shared.
1219
     * This method always returns the same instance of the service.
1220
     *
1221
     * @return \Hautelook\AliceBundle\Alice\DataFixtures\SimpleLoader\SimpleLoader A Hautelook\AliceBundle\Alice\DataFixtures\SimpleLoader\SimpleLoader instance
1222
     */
1223
    protected function getHautelookAlice_Fixtures_LoaderService()
1224
    {
1225
        return $this->services['hautelook_alice.fixtures.loader'] = new \Hautelook\AliceBundle\Alice\DataFixtures\Loader\SimpleLoader($this->get('hautelook_alice.alice.fixtures.loader'), $this->get('hautelook_alice.alice.processor_chain'), false, 5);
1226
    }
1227
1228
    /*
1229
     * Gets the 'http_kernel' service.
1230
     *
1231
     * This service is shared.
1232
     * This method always returns the same instance of the service.
1233
     *
1234
     * @return \Symfony\Component\HttpKernel\HttpKernel A Symfony\Component\HttpKernel\HttpKernel instance
1235
     */
1236
    protected function getHttpKernelService()
1237
    {
1238
        return $this->services['http_kernel'] = new \Symfony\Component\HttpKernel\HttpKernel($this->get('event_dispatcher'), new \Symfony\Bundle\FrameworkBundle\Controller\ControllerResolver($this, $this->get('controller_name_converter'), NULL), $this->get('request_stack'), new \Symfony\Component\HttpKernel\Controller\ArgumentResolver(new \Symfony\Component\HttpKernel\ControllerMetadata\ArgumentMetadataFactory(), array(0 => new \Symfony\Component\HttpKernel\Controller\ArgumentResolver\RequestAttributeValueResolver(), 1 => new \Symfony\Component\HttpKernel\Controller\ArgumentResolver\RequestValueResolver(), 2 => new \Symfony\Component\HttpKernel\Controller\ArgumentResolver\DefaultValueResolver(), 3 => new \Symfony\Component\HttpKernel\Controller\ArgumentResolver\VariadicValueResolver())));
1239
    }
1240
1241
    /*
1242
     * Gets the 'kernel' service.
1243
     *
1244
     * This service is shared.
1245
     * This method always returns the same instance of the service.
1246
     *
1247
     * @throws RuntimeException always since this service is expected to be injected dynamically
1248
     */
1249
    protected function getKernelService()
1250
    {
1251
        throw new RuntimeException('You have requested a synthetic service ("kernel"). The DIC does not know how to construct this service.');
1252
    }
1253
1254
    /*
1255
     * Gets the 'kernel.class_cache.cache_warmer' service.
1256
     *
1257
     * This service is shared.
1258
     * This method always returns the same instance of the service.
1259
     *
1260
     * @return \Symfony\Bundle\FrameworkBundle\CacheWarmer\ClassCacheCacheWarmer A Symfony\Bundle\FrameworkBundle\CacheWarmer\ClassCacheCacheWarmer instance
1261
     */
1262
    protected function getKernel_ClassCache_CacheWarmerService()
1263
    {
1264
        return $this->services['kernel.class_cache.cache_warmer'] = new \Symfony\Bundle\FrameworkBundle\CacheWarmer\ClassCacheCacheWarmer();
1265
    }
1266
1267
    /*
1268
     * Gets the 'locale_listener' service.
1269
     *
1270
     * This service is shared.
1271
     * This method always returns the same instance of the service.
1272
     *
1273
     * @return \Symfony\Component\HttpKernel\EventListener\LocaleListener A Symfony\Component\HttpKernel\EventListener\LocaleListener instance
1274
     */
1275
    protected function getLocaleListenerService()
1276
    {
1277
        return $this->services['locale_listener'] = new \Symfony\Component\HttpKernel\EventListener\LocaleListener($this->get('request_stack'), 'en', $this->get('router', ContainerInterface::NULL_ON_INVALID_REFERENCE));
1278
    }
1279
1280
    /*
1281
     * Gets the 'property_accessor' service.
1282
     *
1283
     * This service is shared.
1284
     * This method always returns the same instance of the service.
1285
     *
1286
     * @return \Symfony\Component\PropertyAccess\PropertyAccessor A Symfony\Component\PropertyAccess\PropertyAccessor instance
1287
     */
1288
    protected function getPropertyAccessorService()
1289
    {
1290
        return $this->services['property_accessor'] = new \Symfony\Component\PropertyAccess\PropertyAccessor(false, false);
1291
    }
1292
1293
    /*
1294
     * Gets the 'request_stack' service.
1295
     *
1296
     * This service is shared.
1297
     * This method always returns the same instance of the service.
1298
     *
1299
     * @return \Symfony\Component\HttpFoundation\RequestStack A Symfony\Component\HttpFoundation\RequestStack instance
1300
     */
1301
    protected function getRequestStackService()
1302
    {
1303
        return $this->services['request_stack'] = new \Symfony\Component\HttpFoundation\RequestStack();
1304
    }
1305
1306
    /*
1307
     * Gets the 'response_listener' service.
1308
     *
1309
     * This service is shared.
1310
     * This method always returns the same instance of the service.
1311
     *
1312
     * @return \Symfony\Component\HttpKernel\EventListener\ResponseListener A Symfony\Component\HttpKernel\EventListener\ResponseListener instance
1313
     */
1314
    protected function getResponseListenerService()
1315
    {
1316
        return $this->services['response_listener'] = new \Symfony\Component\HttpKernel\EventListener\ResponseListener('UTF-8');
1317
    }
1318
1319
    /*
1320
     * Gets the 'router' service.
1321
     *
1322
     * This service is shared.
1323
     * This method always returns the same instance of the service.
1324
     *
1325
     * @return \Symfony\Bundle\FrameworkBundle\Routing\Router A Symfony\Bundle\FrameworkBundle\Routing\Router instance
1326
     */
1327 View Code Duplication
    protected function getRouterService()
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
1328
    {
1329
        $this->services['router'] = $instance = new \Symfony\Bundle\FrameworkBundle\Routing\Router($this, ($this->targetDirs[2].'/config/routing.yml'), array('cache_dir' => __DIR__, 'debug' => false, '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' => 'SymfonyAppTestUrlGenerator', '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' => 'SymfonyAppTestUrlMatcher', 'strict_requirements' => true), $this->get('router.request_context', ContainerInterface::NULL_ON_INVALID_REFERENCE), NULL);
0 ignored issues
show
Unused Code introduced by
The call to Router::__construct() has too many arguments starting with NULL.

This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue.

If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress.

In this case you can add the @ignore PhpDoc annotation to the duplicate definition and it will be ignored.

Loading history...
1330
1331
        $instance->setConfigCacheFactory($this->get('config_cache_factory'));
1332
1333
        return $instance;
1334
    }
1335
1336
    /*
1337
     * Gets the 'router_listener' service.
1338
     *
1339
     * This service is shared.
1340
     * This method always returns the same instance of the service.
1341
     *
1342
     * @return \Symfony\Component\HttpKernel\EventListener\RouterListener A Symfony\Component\HttpKernel\EventListener\RouterListener instance
1343
     */
1344
    protected function getRouterListenerService()
1345
    {
1346
        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), NULL);
1347
    }
1348
1349
    /*
1350
     * Gets the 'routing.loader' service.
1351
     *
1352
     * This service is shared.
1353
     * This method always returns the same instance of the service.
1354
     *
1355
     * @return \Symfony\Bundle\FrameworkBundle\Routing\DelegatingLoader A Symfony\Bundle\FrameworkBundle\Routing\DelegatingLoader instance
1356
     */
1357 View Code Duplication
    protected function getRouting_LoaderService()
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
1358
    {
1359
        $a = $this->get('file_locator');
1360
1361
        $b = new \Symfony\Component\Config\Loader\LoaderResolver();
1362
        $b->addLoader(new \Symfony\Component\Routing\Loader\XmlFileLoader($a));
1363
        $b->addLoader(new \Symfony\Component\Routing\Loader\YamlFileLoader($a));
1364
        $b->addLoader(new \Symfony\Component\Routing\Loader\PhpFileLoader($a));
1365
        $b->addLoader(new \Symfony\Component\Routing\Loader\DirectoryLoader($a));
1366
        $b->addLoader(new \Symfony\Component\Routing\Loader\DependencyInjection\ServiceRouterLoader($this));
1367
1368
        return $this->services['routing.loader'] = new \Symfony\Bundle\FrameworkBundle\Routing\DelegatingLoader($this->get('controller_name_converter'), $b);
1369
    }
1370
1371
    /*
1372
     * Gets the 'service_container' service.
1373
     *
1374
     * This service is shared.
1375
     * This method always returns the same instance of the service.
1376
     *
1377
     * @throws RuntimeException always since this service is expected to be injected dynamically
1378
     */
1379
    protected function getServiceContainerService()
1380
    {
1381
        throw new RuntimeException('You have requested a synthetic service ("service_container"). The DIC does not know how to construct this service.');
1382
    }
1383
1384
    /*
1385
     * Gets the 'session' service.
1386
     *
1387
     * This service is shared.
1388
     * This method always returns the same instance of the service.
1389
     *
1390
     * @return \Symfony\Component\HttpFoundation\Session\Session A Symfony\Component\HttpFoundation\Session\Session instance
1391
     */
1392
    protected function getSessionService()
1393
    {
1394
        return $this->services['session'] = new \Symfony\Component\HttpFoundation\Session\Session($this->get('session.storage.native'), new \Symfony\Component\HttpFoundation\Session\Attribute\AttributeBag(), new \Symfony\Component\HttpFoundation\Session\Flash\FlashBag());
1395
    }
1396
1397
    /*
1398
     * Gets the 'session.handler' service.
1399
     *
1400
     * This service is shared.
1401
     * This method always returns the same instance of the service.
1402
     *
1403
     * @return \Symfony\Component\HttpFoundation\Session\Storage\Handler\NativeFileSessionHandler A Symfony\Component\HttpFoundation\Session\Storage\Handler\NativeFileSessionHandler instance
1404
     */
1405
    protected function getSession_HandlerService()
1406
    {
1407
        return $this->services['session.handler'] = new \Symfony\Component\HttpFoundation\Session\Storage\Handler\NativeFileSessionHandler((__DIR__.'/sessions'));
1408
    }
1409
1410
    /*
1411
     * Gets the 'session.save_listener' service.
1412
     *
1413
     * This service is shared.
1414
     * This method always returns the same instance of the service.
1415
     *
1416
     * @return \Symfony\Component\HttpKernel\EventListener\SaveSessionListener A Symfony\Component\HttpKernel\EventListener\SaveSessionListener instance
1417
     */
1418
    protected function getSession_SaveListenerService()
1419
    {
1420
        return $this->services['session.save_listener'] = new \Symfony\Component\HttpKernel\EventListener\SaveSessionListener();
1421
    }
1422
1423
    /*
1424
     * Gets the 'session.storage.filesystem' service.
1425
     *
1426
     * This service is shared.
1427
     * This method always returns the same instance of the service.
1428
     *
1429
     * @return \Symfony\Component\HttpFoundation\Session\Storage\MockFileSessionStorage A Symfony\Component\HttpFoundation\Session\Storage\MockFileSessionStorage instance
1430
     */
1431
    protected function getSession_Storage_FilesystemService()
1432
    {
1433
        return $this->services['session.storage.filesystem'] = new \Symfony\Component\HttpFoundation\Session\Storage\MockFileSessionStorage((__DIR__.'/sessions'), 'MOCKSESSID', $this->get('session.storage.metadata_bag'));
1434
    }
1435
1436
    /*
1437
     * Gets the 'session.storage.native' service.
1438
     *
1439
     * This service is shared.
1440
     * This method always returns the same instance of the service.
1441
     *
1442
     * @return \Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage A Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage instance
1443
     */
1444
    protected function getSession_Storage_NativeService()
1445
    {
1446
        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'));
1447
    }
1448
1449
    /*
1450
     * Gets the 'session.storage.php_bridge' service.
1451
     *
1452
     * This service is shared.
1453
     * This method always returns the same instance of the service.
1454
     *
1455
     * @return \Symfony\Component\HttpFoundation\Session\Storage\PhpBridgeSessionStorage A Symfony\Component\HttpFoundation\Session\Storage\PhpBridgeSessionStorage instance
1456
     */
1457
    protected function getSession_Storage_PhpBridgeService()
1458
    {
1459
        return $this->services['session.storage.php_bridge'] = new \Symfony\Component\HttpFoundation\Session\Storage\PhpBridgeSessionStorage($this->get('session.handler'), $this->get('session.storage.metadata_bag'));
1460
    }
1461
1462
    /*
1463
     * Gets the 'session_listener' service.
1464
     *
1465
     * This service is shared.
1466
     * This method always returns the same instance of the service.
1467
     *
1468
     * @return \Symfony\Bundle\FrameworkBundle\EventListener\SessionListener A Symfony\Bundle\FrameworkBundle\EventListener\SessionListener instance
1469
     */
1470
    protected function getSessionListenerService()
1471
    {
1472
        return $this->services['session_listener'] = new \Symfony\Bundle\FrameworkBundle\EventListener\SessionListener($this);
1473
    }
1474
1475
    /*
1476
     * Gets the 'streamed_response_listener' service.
1477
     *
1478
     * This service is shared.
1479
     * This method always returns the same instance of the service.
1480
     *
1481
     * @return \Symfony\Component\HttpKernel\EventListener\StreamedResponseListener A Symfony\Component\HttpKernel\EventListener\StreamedResponseListener instance
1482
     */
1483
    protected function getStreamedResponseListenerService()
1484
    {
1485
        return $this->services['streamed_response_listener'] = new \Symfony\Component\HttpKernel\EventListener\StreamedResponseListener();
1486
    }
1487
1488
    /*
1489
     * Gets the 'test.client' service.
1490
     *
1491
     * @return \Symfony\Bundle\FrameworkBundle\Client A Symfony\Bundle\FrameworkBundle\Client instance
1492
     */
1493
    protected function getTest_ClientService()
1494
    {
1495
        return new \Symfony\Bundle\FrameworkBundle\Client($this->get('kernel'), array(), new \Symfony\Component\BrowserKit\History(), new \Symfony\Component\BrowserKit\CookieJar());
1496
    }
1497
1498
    /*
1499
     * Gets the 'test.client.cookiejar' service.
1500
     *
1501
     * @return \Symfony\Component\BrowserKit\CookieJar A Symfony\Component\BrowserKit\CookieJar instance
1502
     */
1503
    protected function getTest_Client_CookiejarService()
1504
    {
1505
        return new \Symfony\Component\BrowserKit\CookieJar();
1506
    }
1507
1508
    /*
1509
     * Gets the 'test.client.history' service.
1510
     *
1511
     * @return \Symfony\Component\BrowserKit\History A Symfony\Component\BrowserKit\History instance
1512
     */
1513
    protected function getTest_Client_HistoryService()
1514
    {
1515
        return new \Symfony\Component\BrowserKit\History();
1516
    }
1517
1518
    /*
1519
     * Gets the 'test.session.listener' service.
1520
     *
1521
     * This service is shared.
1522
     * This method always returns the same instance of the service.
1523
     *
1524
     * @return \Symfony\Bundle\FrameworkBundle\EventListener\TestSessionListener A Symfony\Bundle\FrameworkBundle\EventListener\TestSessionListener instance
1525
     */
1526
    protected function getTest_Session_ListenerService()
1527
    {
1528
        return $this->services['test.session.listener'] = new \Symfony\Bundle\FrameworkBundle\EventListener\TestSessionListener($this);
1529
    }
1530
1531
    /*
1532
     * Gets the 'translation.dumper.csv' service.
1533
     *
1534
     * This service is shared.
1535
     * This method always returns the same instance of the service.
1536
     *
1537
     * @return \Symfony\Component\Translation\Dumper\CsvFileDumper A Symfony\Component\Translation\Dumper\CsvFileDumper instance
1538
     */
1539
    protected function getTranslation_Dumper_CsvService()
1540
    {
1541
        return $this->services['translation.dumper.csv'] = new \Symfony\Component\Translation\Dumper\CsvFileDumper();
1542
    }
1543
1544
    /*
1545
     * Gets the 'translation.dumper.ini' service.
1546
     *
1547
     * This service is shared.
1548
     * This method always returns the same instance of the service.
1549
     *
1550
     * @return \Symfony\Component\Translation\Dumper\IniFileDumper A Symfony\Component\Translation\Dumper\IniFileDumper instance
1551
     */
1552
    protected function getTranslation_Dumper_IniService()
1553
    {
1554
        return $this->services['translation.dumper.ini'] = new \Symfony\Component\Translation\Dumper\IniFileDumper();
1555
    }
1556
1557
    /*
1558
     * Gets the 'translation.dumper.json' service.
1559
     *
1560
     * This service is shared.
1561
     * This method always returns the same instance of the service.
1562
     *
1563
     * @return \Symfony\Component\Translation\Dumper\JsonFileDumper A Symfony\Component\Translation\Dumper\JsonFileDumper instance
1564
     */
1565
    protected function getTranslation_Dumper_JsonService()
1566
    {
1567
        return $this->services['translation.dumper.json'] = new \Symfony\Component\Translation\Dumper\JsonFileDumper();
1568
    }
1569
1570
    /*
1571
     * Gets the 'translation.dumper.mo' service.
1572
     *
1573
     * This service is shared.
1574
     * This method always returns the same instance of the service.
1575
     *
1576
     * @return \Symfony\Component\Translation\Dumper\MoFileDumper A Symfony\Component\Translation\Dumper\MoFileDumper instance
1577
     */
1578
    protected function getTranslation_Dumper_MoService()
1579
    {
1580
        return $this->services['translation.dumper.mo'] = new \Symfony\Component\Translation\Dumper\MoFileDumper();
1581
    }
1582
1583
    /*
1584
     * Gets the 'translation.dumper.php' service.
1585
     *
1586
     * This service is shared.
1587
     * This method always returns the same instance of the service.
1588
     *
1589
     * @return \Symfony\Component\Translation\Dumper\PhpFileDumper A Symfony\Component\Translation\Dumper\PhpFileDumper instance
1590
     */
1591
    protected function getTranslation_Dumper_PhpService()
1592
    {
1593
        return $this->services['translation.dumper.php'] = new \Symfony\Component\Translation\Dumper\PhpFileDumper();
1594
    }
1595
1596
    /*
1597
     * Gets the 'translation.dumper.po' service.
1598
     *
1599
     * This service is shared.
1600
     * This method always returns the same instance of the service.
1601
     *
1602
     * @return \Symfony\Component\Translation\Dumper\PoFileDumper A Symfony\Component\Translation\Dumper\PoFileDumper instance
1603
     */
1604
    protected function getTranslation_Dumper_PoService()
1605
    {
1606
        return $this->services['translation.dumper.po'] = new \Symfony\Component\Translation\Dumper\PoFileDumper();
1607
    }
1608
1609
    /*
1610
     * Gets the 'translation.dumper.qt' service.
1611
     *
1612
     * This service is shared.
1613
     * This method always returns the same instance of the service.
1614
     *
1615
     * @return \Symfony\Component\Translation\Dumper\QtFileDumper A Symfony\Component\Translation\Dumper\QtFileDumper instance
1616
     */
1617
    protected function getTranslation_Dumper_QtService()
1618
    {
1619
        return $this->services['translation.dumper.qt'] = new \Symfony\Component\Translation\Dumper\QtFileDumper();
1620
    }
1621
1622
    /*
1623
     * Gets the 'translation.dumper.res' service.
1624
     *
1625
     * This service is shared.
1626
     * This method always returns the same instance of the service.
1627
     *
1628
     * @return \Symfony\Component\Translation\Dumper\IcuResFileDumper A Symfony\Component\Translation\Dumper\IcuResFileDumper instance
1629
     */
1630
    protected function getTranslation_Dumper_ResService()
1631
    {
1632
        return $this->services['translation.dumper.res'] = new \Symfony\Component\Translation\Dumper\IcuResFileDumper();
1633
    }
1634
1635
    /*
1636
     * Gets the 'translation.dumper.xliff' service.
1637
     *
1638
     * This service is shared.
1639
     * This method always returns the same instance of the service.
1640
     *
1641
     * @return \Symfony\Component\Translation\Dumper\XliffFileDumper A Symfony\Component\Translation\Dumper\XliffFileDumper instance
1642
     */
1643
    protected function getTranslation_Dumper_XliffService()
1644
    {
1645
        return $this->services['translation.dumper.xliff'] = new \Symfony\Component\Translation\Dumper\XliffFileDumper();
1646
    }
1647
1648
    /*
1649
     * Gets the 'translation.dumper.yml' service.
1650
     *
1651
     * This service is shared.
1652
     * This method always returns the same instance of the service.
1653
     *
1654
     * @return \Symfony\Component\Translation\Dumper\YamlFileDumper A Symfony\Component\Translation\Dumper\YamlFileDumper instance
1655
     */
1656
    protected function getTranslation_Dumper_YmlService()
1657
    {
1658
        return $this->services['translation.dumper.yml'] = new \Symfony\Component\Translation\Dumper\YamlFileDumper();
1659
    }
1660
1661
    /*
1662
     * Gets the 'translation.extractor' service.
1663
     *
1664
     * This service is shared.
1665
     * This method always returns the same instance of the service.
1666
     *
1667
     * @return \Symfony\Component\Translation\Extractor\ChainExtractor A Symfony\Component\Translation\Extractor\ChainExtractor instance
1668
     */
1669 View Code Duplication
    protected function getTranslation_ExtractorService()
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
1670
    {
1671
        $this->services['translation.extractor'] = $instance = new \Symfony\Component\Translation\Extractor\ChainExtractor();
1672
1673
        $instance->addExtractor('php', $this->get('translation.extractor.php'));
1674
1675
        return $instance;
1676
    }
1677
1678
    /*
1679
     * Gets the 'translation.extractor.php' service.
1680
     *
1681
     * This service is shared.
1682
     * This method always returns the same instance of the service.
1683
     *
1684
     * @return \Symfony\Bundle\FrameworkBundle\Translation\PhpExtractor A Symfony\Bundle\FrameworkBundle\Translation\PhpExtractor instance
1685
     */
1686
    protected function getTranslation_Extractor_PhpService()
1687
    {
1688
        return $this->services['translation.extractor.php'] = new \Symfony\Bundle\FrameworkBundle\Translation\PhpExtractor();
1689
    }
1690
1691
    /*
1692
     * Gets the 'translation.loader' service.
1693
     *
1694
     * This service is shared.
1695
     * This method always returns the same instance of the service.
1696
     *
1697
     * @return \Symfony\Bundle\FrameworkBundle\Translation\TranslationLoader A Symfony\Bundle\FrameworkBundle\Translation\TranslationLoader instance
1698
     */
1699 View Code Duplication
    protected function getTranslation_LoaderService()
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
1700
    {
1701
        $a = $this->get('translation.loader.xliff');
1702
1703
        $this->services['translation.loader'] = $instance = new \Symfony\Bundle\FrameworkBundle\Translation\TranslationLoader();
1704
1705
        $instance->addLoader('php', $this->get('translation.loader.php'));
1706
        $instance->addLoader('yml', $this->get('translation.loader.yml'));
1707
        $instance->addLoader('xlf', $a);
1708
        $instance->addLoader('xliff', $a);
1709
        $instance->addLoader('po', $this->get('translation.loader.po'));
1710
        $instance->addLoader('mo', $this->get('translation.loader.mo'));
1711
        $instance->addLoader('ts', $this->get('translation.loader.qt'));
1712
        $instance->addLoader('csv', $this->get('translation.loader.csv'));
1713
        $instance->addLoader('res', $this->get('translation.loader.res'));
1714
        $instance->addLoader('dat', $this->get('translation.loader.dat'));
1715
        $instance->addLoader('ini', $this->get('translation.loader.ini'));
1716
        $instance->addLoader('json', $this->get('translation.loader.json'));
1717
1718
        return $instance;
1719
    }
1720
1721
    /*
1722
     * Gets the 'translation.loader.csv' service.
1723
     *
1724
     * This service is shared.
1725
     * This method always returns the same instance of the service.
1726
     *
1727
     * @return \Symfony\Component\Translation\SimpleLoader\CsvFileLoader A Symfony\Component\Translation\SimpleLoader\CsvFileLoader instance
1728
     */
1729
    protected function getTranslation_Loader_CsvService()
1730
    {
1731
        return $this->services['translation.loader.csv'] = new \Symfony\Component\Translation\Loader\CsvFileLoader();
1732
    }
1733
1734
    /*
1735
     * Gets the 'translation.loader.dat' service.
1736
     *
1737
     * This service is shared.
1738
     * This method always returns the same instance of the service.
1739
     *
1740
     * @return \Symfony\Component\Translation\SimpleLoader\IcuDatFileLoader A Symfony\Component\Translation\SimpleLoader\IcuDatFileLoader instance
1741
     */
1742
    protected function getTranslation_Loader_DatService()
1743
    {
1744
        return $this->services['translation.loader.dat'] = new \Symfony\Component\Translation\Loader\IcuDatFileLoader();
1745
    }
1746
1747
    /*
1748
     * Gets the 'translation.loader.ini' service.
1749
     *
1750
     * This service is shared.
1751
     * This method always returns the same instance of the service.
1752
     *
1753
     * @return \Symfony\Component\Translation\SimpleLoader\IniFileLoader A Symfony\Component\Translation\SimpleLoader\IniFileLoader instance
1754
     */
1755
    protected function getTranslation_Loader_IniService()
1756
    {
1757
        return $this->services['translation.loader.ini'] = new \Symfony\Component\Translation\Loader\IniFileLoader();
1758
    }
1759
1760
    /*
1761
     * Gets the 'translation.loader.json' service.
1762
     *
1763
     * This service is shared.
1764
     * This method always returns the same instance of the service.
1765
     *
1766
     * @return \Symfony\Component\Translation\SimpleLoader\JsonFileLoader A Symfony\Component\Translation\SimpleLoader\JsonFileLoader instance
1767
     */
1768
    protected function getTranslation_Loader_JsonService()
1769
    {
1770
        return $this->services['translation.loader.json'] = new \Symfony\Component\Translation\Loader\JsonFileLoader();
1771
    }
1772
1773
    /*
1774
     * Gets the 'translation.loader.mo' service.
1775
     *
1776
     * This service is shared.
1777
     * This method always returns the same instance of the service.
1778
     *
1779
     * @return \Symfony\Component\Translation\SimpleLoader\MoFileLoader A Symfony\Component\Translation\SimpleLoader\MoFileLoader instance
1780
     */
1781
    protected function getTranslation_Loader_MoService()
1782
    {
1783
        return $this->services['translation.loader.mo'] = new \Symfony\Component\Translation\Loader\MoFileLoader();
1784
    }
1785
1786
    /*
1787
     * Gets the 'translation.loader.php' service.
1788
     *
1789
     * This service is shared.
1790
     * This method always returns the same instance of the service.
1791
     *
1792
     * @return \Symfony\Component\Translation\SimpleLoader\PhpFileLoader A Symfony\Component\Translation\SimpleLoader\PhpFileLoader instance
1793
     */
1794
    protected function getTranslation_Loader_PhpService()
1795
    {
1796
        return $this->services['translation.loader.php'] = new \Symfony\Component\Translation\Loader\PhpFileLoader();
1797
    }
1798
1799
    /*
1800
     * Gets the 'translation.loader.po' service.
1801
     *
1802
     * This service is shared.
1803
     * This method always returns the same instance of the service.
1804
     *
1805
     * @return \Symfony\Component\Translation\SimpleLoader\PoFileLoader A Symfony\Component\Translation\SimpleLoader\PoFileLoader instance
1806
     */
1807
    protected function getTranslation_Loader_PoService()
1808
    {
1809
        return $this->services['translation.loader.po'] = new \Symfony\Component\Translation\Loader\PoFileLoader();
1810
    }
1811
1812
    /*
1813
     * Gets the 'translation.loader.qt' service.
1814
     *
1815
     * This service is shared.
1816
     * This method always returns the same instance of the service.
1817
     *
1818
     * @return \Symfony\Component\Translation\SimpleLoader\QtFileLoader A Symfony\Component\Translation\SimpleLoader\QtFileLoader instance
1819
     */
1820
    protected function getTranslation_Loader_QtService()
1821
    {
1822
        return $this->services['translation.loader.qt'] = new \Symfony\Component\Translation\Loader\QtFileLoader();
1823
    }
1824
1825
    /*
1826
     * Gets the 'translation.loader.res' service.
1827
     *
1828
     * This service is shared.
1829
     * This method always returns the same instance of the service.
1830
     *
1831
     * @return \Symfony\Component\Translation\SimpleLoader\IcuResFileLoader A Symfony\Component\Translation\SimpleLoader\IcuResFileLoader instance
1832
     */
1833
    protected function getTranslation_Loader_ResService()
1834
    {
1835
        return $this->services['translation.loader.res'] = new \Symfony\Component\Translation\Loader\IcuResFileLoader();
1836
    }
1837
1838
    /*
1839
     * Gets the 'translation.loader.xliff' service.
1840
     *
1841
     * This service is shared.
1842
     * This method always returns the same instance of the service.
1843
     *
1844
     * @return \Symfony\Component\Translation\SimpleLoader\XliffFileLoader A Symfony\Component\Translation\SimpleLoader\XliffFileLoader instance
1845
     */
1846
    protected function getTranslation_Loader_XliffService()
1847
    {
1848
        return $this->services['translation.loader.xliff'] = new \Symfony\Component\Translation\Loader\XliffFileLoader();
1849
    }
1850
1851
    /*
1852
     * Gets the 'translation.loader.yml' service.
1853
     *
1854
     * This service is shared.
1855
     * This method always returns the same instance of the service.
1856
     *
1857
     * @return \Symfony\Component\Translation\SimpleLoader\YamlFileLoader A Symfony\Component\Translation\SimpleLoader\YamlFileLoader instance
1858
     */
1859
    protected function getTranslation_Loader_YmlService()
1860
    {
1861
        return $this->services['translation.loader.yml'] = new \Symfony\Component\Translation\Loader\YamlFileLoader();
1862
    }
1863
1864
    /*
1865
     * Gets the 'translation.writer' service.
1866
     *
1867
     * This service is shared.
1868
     * This method always returns the same instance of the service.
1869
     *
1870
     * @return \Symfony\Component\Translation\Writer\TranslationWriter A Symfony\Component\Translation\Writer\TranslationWriter instance
1871
     */
1872 View Code Duplication
    protected function getTranslation_WriterService()
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
1873
    {
1874
        $this->services['translation.writer'] = $instance = new \Symfony\Component\Translation\Writer\TranslationWriter();
1875
1876
        $instance->addDumper('php', $this->get('translation.dumper.php'));
1877
        $instance->addDumper('xlf', $this->get('translation.dumper.xliff'));
1878
        $instance->addDumper('po', $this->get('translation.dumper.po'));
1879
        $instance->addDumper('mo', $this->get('translation.dumper.mo'));
1880
        $instance->addDumper('yml', $this->get('translation.dumper.yml'));
1881
        $instance->addDumper('ts', $this->get('translation.dumper.qt'));
1882
        $instance->addDumper('csv', $this->get('translation.dumper.csv'));
1883
        $instance->addDumper('ini', $this->get('translation.dumper.ini'));
1884
        $instance->addDumper('json', $this->get('translation.dumper.json'));
1885
        $instance->addDumper('res', $this->get('translation.dumper.res'));
1886
1887
        return $instance;
1888
    }
1889
1890
    /*
1891
     * Gets the 'translator' service.
1892
     *
1893
     * This service is shared.
1894
     * This method always returns the same instance of the service.
1895
     *
1896
     * @return \Symfony\Component\Translation\IdentityTranslator A Symfony\Component\Translation\IdentityTranslator instance
1897
     */
1898
    protected function getTranslatorService()
1899
    {
1900
        return $this->services['translator'] = new \Symfony\Component\Translation\IdentityTranslator($this->get('translator.selector'));
1901
    }
1902
1903
    /*
1904
     * Gets the 'translator.default' service.
1905
     *
1906
     * This service is shared.
1907
     * This method always returns the same instance of the service.
1908
     *
1909
     * @return \Symfony\Bundle\FrameworkBundle\Translation\Translator A Symfony\Bundle\FrameworkBundle\Translation\Translator instance
1910
     */
1911 View Code Duplication
    protected function getTranslator_DefaultService()
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
1912
    {
1913
        $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' => false), array());
0 ignored issues
show
Unused Code introduced by
The call to Translator::__construct() has too many arguments starting with array().

This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue.

If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress.

In this case you can add the @ignore PhpDoc annotation to the duplicate definition and it will be ignored.

Loading history...
1914
1915
        $instance->setConfigCacheFactory($this->get('config_cache_factory'));
1916
1917
        return $instance;
1918
    }
1919
1920
    /*
1921
     * Gets the 'translator_listener' service.
1922
     *
1923
     * This service is shared.
1924
     * This method always returns the same instance of the service.
1925
     *
1926
     * @return \Symfony\Component\HttpKernel\EventListener\TranslatorListener A Symfony\Component\HttpKernel\EventListener\TranslatorListener instance
1927
     */
1928
    protected function getTranslatorListenerService()
1929
    {
1930
        return $this->services['translator_listener'] = new \Symfony\Component\HttpKernel\EventListener\TranslatorListener($this->get('translator'), $this->get('request_stack'));
1931
    }
1932
1933
    /*
1934
     * Gets the 'uri_signer' service.
1935
     *
1936
     * This service is shared.
1937
     * This method always returns the same instance of the service.
1938
     *
1939
     * @return \Symfony\Component\HttpKernel\UriSigner A Symfony\Component\HttpKernel\UriSigner instance
1940
     */
1941
    protected function getUriSignerService()
1942
    {
1943
        return $this->services['uri_signer'] = new \Symfony\Component\HttpKernel\UriSigner('test');
1944
    }
1945
1946
    /*
1947
     * Gets the 'validate_request_listener' service.
1948
     *
1949
     * This service is shared.
1950
     * This method always returns the same instance of the service.
1951
     *
1952
     * @return \Symfony\Component\HttpKernel\EventListener\ValidateRequestListener A Symfony\Component\HttpKernel\EventListener\ValidateRequestListener instance
1953
     */
1954
    protected function getValidateRequestListenerService()
1955
    {
1956
        return $this->services['validate_request_listener'] = new \Symfony\Component\HttpKernel\EventListener\ValidateRequestListener();
1957
    }
1958
1959
    /*
1960
     * Gets the 'validator' service.
1961
     *
1962
     * This service is shared.
1963
     * This method always returns the same instance of the service.
1964
     *
1965
     * @return \Symfony\Component\Validator\Validator\ValidatorInterface A Symfony\Component\Validator\Validator\ValidatorInterface instance
1966
     */
1967
    protected function getValidatorService()
1968
    {
1969
        return $this->services['validator'] = $this->get('validator.builder')->getValidator();
1970
    }
1971
1972
    /*
1973
     * Gets the 'validator.builder' service.
1974
     *
1975
     * This service is shared.
1976
     * This method always returns the same instance of the service.
1977
     *
1978
     * @return \Symfony\Component\Validator\ValidatorBuilderInterface A Symfony\Component\Validator\ValidatorBuilderInterface instance
1979
     */
1980
    protected function getValidator_BuilderService()
1981
    {
1982
        $this->services['validator.builder'] = $instance = \Symfony\Component\Validator\Validation::createValidatorBuilder();
1983
1984
        $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')));
1985
        $instance->setTranslator($this->get('translator'));
1986
        $instance->setTranslationDomain('validators');
1987
        $instance->enableAnnotationMapping($this->get('annotation_reader'));
1988
        $instance->addMethodMapping('loadValidatorMetadata');
1989
        $instance->setMetadataCache(new \Symfony\Component\Validator\Mapping\Cache\Psr6Cache($this->get('cache.validator')));
1990
        $instance->addObjectInitializers(array());
1991
1992
        return $instance;
1993
    }
1994
1995
    /*
1996
     * Gets the 'validator.email' service.
1997
     *
1998
     * This service is shared.
1999
     * This method always returns the same instance of the service.
2000
     *
2001
     * @return \Symfony\Component\Validator\Constraints\EmailValidator A Symfony\Component\Validator\Constraints\EmailValidator instance
2002
     */
2003
    protected function getValidator_EmailService()
2004
    {
2005
        return $this->services['validator.email'] = new \Symfony\Component\Validator\Constraints\EmailValidator(false);
2006
    }
2007
2008
    /*
2009
     * Gets the 'validator.expression' service.
2010
     *
2011
     * This service is shared.
2012
     * This method always returns the same instance of the service.
2013
     *
2014
     * @return \Symfony\Component\Validator\Constraints\ExpressionValidator A Symfony\Component\Validator\Constraints\ExpressionValidator instance
2015
     */
2016
    protected function getValidator_ExpressionService()
2017
    {
2018
        return $this->services['validator.expression'] = new \Symfony\Component\Validator\Constraints\ExpressionValidator();
2019
    }
2020
2021
    /*
2022
     * Gets the 'cache.validator' service.
2023
     *
2024
     * This service is shared.
2025
     * This method always returns the same instance of the service.
2026
     *
2027
     * This service is private.
2028
     * If you want to be able to request this service from the container directly,
2029
     * make it public, otherwise you might end up with broken code.
2030
     *
2031
     * @return \Symfony\Component\Cache\Adapter\AdapterInterface A Symfony\Component\Cache\Adapter\AdapterInterface instance
2032
     */
2033
    protected function getCache_ValidatorService()
2034
    {
2035
        return $this->services['cache.validator'] = \Symfony\Component\Cache\Adapter\AbstractAdapter::createSystemCache('GPMxTBp2Fn', 0, 'mrAgbEfilFktc2EIWqLSFQ', (__DIR__.'/pools'), NULL);
2036
    }
2037
2038
    /*
2039
     * Gets the 'controller_name_converter' service.
2040
     *
2041
     * This service is shared.
2042
     * This method always returns the same instance of the service.
2043
     *
2044
     * This service is private.
2045
     * If you want to be able to request this service from the container directly,
2046
     * make it public, otherwise you might end up with broken code.
2047
     *
2048
     * @return \Symfony\Bundle\FrameworkBundle\Controller\ControllerNameParser A Symfony\Bundle\FrameworkBundle\Controller\ControllerNameParser instance
2049
     */
2050
    protected function getControllerNameConverterService()
2051
    {
2052
        return $this->services['controller_name_converter'] = new \Symfony\Bundle\FrameworkBundle\Controller\ControllerNameParser($this->get('kernel'));
2053
    }
2054
2055
    /*
2056
     * Gets the 'router.request_context' service.
2057
     *
2058
     * This service is shared.
2059
     * This method always returns the same instance of the service.
2060
     *
2061
     * This service is private.
2062
     * If you want to be able to request this service from the container directly,
2063
     * make it public, otherwise you might end up with broken code.
2064
     *
2065
     * @return \Symfony\Component\Routing\RequestContext A Symfony\Component\Routing\RequestContext instance
2066
     */
2067
    protected function getRouter_RequestContextService()
2068
    {
2069
        return $this->services['router.request_context'] = new \Symfony\Component\Routing\RequestContext('', 'GET', 'localhost', 'http', 80, 443);
2070
    }
2071
2072
    /*
2073
     * Gets the 'session.storage.metadata_bag' service.
2074
     *
2075
     * This service is shared.
2076
     * This method always returns the same instance of the service.
2077
     *
2078
     * This service is private.
2079
     * If you want to be able to request this service from the container directly,
2080
     * make it public, otherwise you might end up with broken code.
2081
     *
2082
     * @return \Symfony\Component\HttpFoundation\Session\Storage\MetadataBag A Symfony\Component\HttpFoundation\Session\Storage\MetadataBag instance
2083
     */
2084
    protected function getSession_Storage_MetadataBagService()
2085
    {
2086
        return $this->services['session.storage.metadata_bag'] = new \Symfony\Component\HttpFoundation\Session\Storage\MetadataBag('_sf2_meta', '0');
2087
    }
2088
2089
    /*
2090
     * Gets the 'translator.selector' service.
2091
     *
2092
     * This service is shared.
2093
     * This method always returns the same instance of the service.
2094
     *
2095
     * This service is private.
2096
     * If you want to be able to request this service from the container directly,
2097
     * make it public, otherwise you might end up with broken code.
2098
     *
2099
     * @return \Symfony\Component\Translation\MessageSelector A Symfony\Component\Translation\MessageSelector instance
2100
     */
2101
    protected function getTranslator_SelectorService()
2102
    {
2103
        return $this->services['translator.selector'] = new \Symfony\Component\Translation\MessageSelector();
2104
    }
2105
2106
    /*
2107
     * {@inheritdoc}
2108
     */
2109
    public function getParameter($name)
2110
    {
2111
        $name = strtolower($name);
2112
2113
        if (!(isset($this->parameters[$name]) || array_key_exists($name, $this->parameters))) {
2114
            throw new InvalidArgumentException(sprintf('The parameter "%s" must be defined.', $name));
2115
        }
2116
2117
        return $this->parameters[$name];
2118
    }
2119
2120
    /*
2121
     * {@inheritdoc}
2122
     */
2123
    public function hasParameter($name)
2124
    {
2125
        $name = strtolower($name);
2126
2127
        return isset($this->parameters[$name]) || array_key_exists($name, $this->parameters);
2128
    }
2129
2130
    /*
2131
     * {@inheritdoc}
2132
     */
2133
    public function setParameter($name, $value)
2134
    {
2135
        throw new LogicException('Impossible to call set() on a frozen ParameterBag.');
2136
    }
2137
2138
    /*
2139
     * {@inheritdoc}
2140
     */
2141
    public function getParameterBag()
2142
    {
2143
        if (null === $this->parameterBag) {
2144
            $this->parameterBag = new FrozenParameterBag($this->parameters);
2145
        }
2146
2147
        return $this->parameterBag;
2148
    }
2149
2150
    /*
2151
     * Gets the default parameters.
2152
     *
2153
     * @return array An array of the default parameters
2154
     */
2155
    protected function getDefaultParameters()
2156
    {
2157
        return array(
2158
            'kernel.root_dir' => $this->targetDirs[2],
2159
            'kernel.environment' => 'test',
2160
            'kernel.debug' => false,
2161
            'kernel.name' => 'SymfonyApp',
2162
            'kernel.cache_dir' => __DIR__,
2163
            'kernel.logs_dir' => ($this->targetDirs[2].'/logs'),
2164
            'kernel.bundles' => array(
2165
                'FrameworkBundle' => 'Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle',
2166
                'HautelookAliceBundle' => 'Hautelook\\AliceBundle\\HautelookAliceBundle',
2167
                'TestBundle' => 'Hautelook\\AliceBundle\\Tests\\SymfonyApp\\TestBundle\\TestBundle',
2168
                'TestABundle' => 'Hautelook\\AliceBundle\\Tests\\SymfonyApp\\TestBundle\\Bundle\\ABundle\\TestABundle',
2169
                'TestBBundle' => 'Hautelook\\AliceBundle\\Tests\\SymfonyApp\\TestBundle\\Bundle\\BBundle\\TestBBundle',
2170
                'TestCBundle' => 'Hautelook\\AliceBundle\\Tests\\SymfonyApp\\TestBundle\\Bundle\\CBundle\\TestCBundle',
2171
                'TestDBundle' => 'Hautelook\\AliceBundle\\Tests\\SymfonyApp\\TestBundle\\Bundle\\DBundle\\TestDBundle',
2172
            ),
2173
            'kernel.charset' => 'UTF-8',
2174
            'kernel.container_class' => 'SymfonyAppTestProjectContainer',
2175
            'test_app.random' => 'Random parameter',
2176
            'fragment.renderer.hinclude.global_template' => '',
2177
            'fragment.path' => '/_fragment',
2178
            'kernel.secret' => 'test',
2179
            'kernel.http_method_override' => true,
2180
            'kernel.trusted_hosts' => array(
2181
2182
            ),
2183
            'kernel.trusted_proxies' => array(
2184
2185
            ),
2186
            'kernel.default_locale' => 'en',
2187
            'test.client.parameters' => array(
2188
2189
            ),
2190
            'session.metadata.storage_key' => '_sf2_meta',
2191
            'session.storage.options' => array(
2192
                'cookie_httponly' => true,
2193
                'gc_probability' => 1,
2194
            ),
2195
            'session.save_path' => (__DIR__.'/sessions'),
2196
            'session.metadata.update_threshold' => '0',
2197
            'form.type_extension.csrf.enabled' => false,
2198
            'validator.mapping.cache.prefix' => 'validator_bdf591ac10e8912f78555b77dae08559ebb19386050c997ee7b01ec764bf4b17',
2199
            'validator.translation_domain' => 'validators',
2200
            'data_collector.templates' => array(
2201
2202
            ),
2203
            'router.options.generator_class' => 'Symfony\\Component\\Routing\\Generator\\UrlGenerator',
2204
            'router.options.generator_base_class' => 'Symfony\\Component\\Routing\\Generator\\UrlGenerator',
2205
            'router.options.generator_dumper_class' => 'Symfony\\Component\\Routing\\Generator\\Dumper\\PhpGeneratorDumper',
2206
            'router.options.matcher_class' => 'Symfony\\Bundle\\FrameworkBundle\\Routing\\RedirectableUrlMatcher',
2207
            'router.options.matcher_base_class' => 'Symfony\\Bundle\\FrameworkBundle\\Routing\\RedirectableUrlMatcher',
2208
            'router.options.matcher_dumper_class' => 'Symfony\\Component\\Routing\\Matcher\\Dumper\\PhpMatcherDumper',
2209
            'router.options.matcher.cache_class' => 'SymfonyAppTestUrlMatcher',
2210
            'router.options.generator.cache_class' => 'SymfonyAppTestUrlGenerator',
2211
            'router.request_context.host' => 'localhost',
2212
            'router.request_context.scheme' => 'http',
2213
            'router.request_context.base_url' => '',
2214
            'router.resource' => ($this->targetDirs[2].'/config/routing.yml'),
2215
            'router.cache_class_prefix' => 'SymfonyAppTest',
2216
            'request_listener.http_port' => 80,
2217
            'request_listener.https_port' => 443,
2218
            'debug.error_handler.throw_at' => 0,
2219
            'hautelook_alice.db_drivers' => array(
2220
                'orm' => NULL,
2221
                'mongodb' => NULL,
2222
                'phpcr' => NULL,
2223
            ),
2224
            'hautelook_alice.locale' => 'en_US',
2225
            'hautelook_alice.seed' => 1,
2226
            'hautelook_alice.persist_once' => false,
2227
            'hautelook_alice.loading_limit' => 5,
2228
            'console.command.ids' => array(
2229
2230
            ),
2231
        );
2232
    }
2233
}
2234