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

SymfonyAppTestDebugProjectContainer   F

Complexity

Total Complexity 173

Size/Duplication

Total Lines 2905
Duplicated Lines 7.13 %

Coupling/Cohesion

Components 2
Dependencies 132

Importance

Changes 0
Metric Value
wmc 173
lcom 2
cbo 132
dl 207
loc 2905
rs 0.5217
c 0
b 0
f 0

168 Methods

Rating   Name   Duplication   Size   Complexity  
B __construct() 0 186 2
A compile() 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_ArgumentResolverService() 0 4 1
A getDebug_ControllerResolverService() 0 4 1
A getDebug_DebugHandlersListenerService() 0 4 1
A getDebug_EventDispatcherService() 17 17 1
A getDebug_StopwatchService() 0 4 1
A getDoctrineService() 0 4 1
A getDoctrine_Dbal_ConnectionFactoryService() 0 4 1
A getDoctrine_Dbal_DefaultConnectionService() 0 15 1
A getDoctrine_Dbal_DefaultShardManagerService() 0 4 1
A getDoctrine_Dbal_MysqlConnectionService() 0 15 1
A getDoctrine_Dbal_MysqlShardManagerService() 0 4 1
A getDoctrine_Orm_DefaultEntityListenerResolverService() 0 4 1
B getDoctrine_Orm_DefaultEntityManagerService() 32 32 1
A getDoctrine_Orm_DefaultListeners_AttachEntityListenersService() 0 4 1
A getDoctrine_Orm_DefaultManagerConfiguratorService() 0 4 1
A getDoctrine_Orm_MysqlEntityListenerResolverService() 0 4 1
B getDoctrine_Orm_MysqlEntityManagerService() 32 32 1
A getDoctrine_Orm_MysqlListeners_AttachEntityListenersService() 0 4 1
A getDoctrine_Orm_MysqlManagerConfiguratorService() 0 4 1
A getDoctrine_Orm_Validator_UniqueService() 0 4 1
A getDoctrine_Orm_ValidatorInitializerService() 0 4 1
A getDoctrineCache_Providers_Doctrine_Orm_DefaultMetadataCacheService() 0 8 1
A getDoctrineCache_Providers_Doctrine_Orm_DefaultQueryCacheService() 0 8 1
A getDoctrineCache_Providers_Doctrine_Orm_DefaultResultCacheService() 0 8 1
A getDoctrineCache_Providers_Doctrine_Orm_MysqlMetadataCacheService() 0 8 1
A getDoctrineCache_Providers_Doctrine_Orm_MysqlQueryCacheService() 0 8 1
A getDoctrineCache_Providers_Doctrine_Orm_MysqlResultCacheService() 0 8 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_EntityService() 0 4 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_DoctrineService() 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_Command_DeprecatedLoadCommandService() 0 4 1
A getHautelookAlice_Doctrine_Command_LoadCommandService() 0 4 1
A getHautelookAlice_Doctrine_CommandFactoryService() 0 4 1
A getHautelookAlice_Doctrine_Executor_FixturesExecutorService() 0 4 1
A getHautelookAlice_Doctrine_Orm_FixturesFinderService() 0 8 1
A getHautelookAlice_Doctrine_Orm_LoaderGeneratorService() 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 13 1
A getValidator_EmailService() 0 4 1
A getValidator_ExpressionService() 0 4 1
A getControllerNameConverterService() 0 4 1
A getDoctrine_Dbal_LoggerService() 0 4 1
A getDoctrine_Orm_NamingStrategy_DefaultService() 0 4 1
A getDoctrine_Orm_QuoteStrategy_DefaultService() 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 198 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 SymfonyAppTestDebugProjectContainer 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 SymfonyAppTestDebugProjectContainer, 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
 * SymfonyAppTestDebugProjectContainer.
12
 *
13
 * This class has been auto-generated
14
 * by the Symfony Dependency Injection Component.
15
 */
16
class SymfonyAppTestDebugProjectContainer 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_clearer' => 'getCacheClearerService',
40
            'cache_warmer' => 'getCacheWarmerService',
41
            'config_cache_factory' => 'getConfigCacheFactoryService',
42
            'controller_name_converter' => 'getControllerNameConverterService',
43
            'debug.argument_resolver' => 'getDebug_ArgumentResolverService',
44
            'debug.controller_resolver' => 'getDebug_ControllerResolverService',
45
            'debug.debug_handlers_listener' => 'getDebug_DebugHandlersListenerService',
46
            'debug.event_dispatcher' => 'getDebug_EventDispatcherService',
47
            'debug.stopwatch' => 'getDebug_StopwatchService',
48
            'doctrine' => 'getDoctrineService',
49
            'doctrine.dbal.connection_factory' => 'getDoctrine_Dbal_ConnectionFactoryService',
50
            'doctrine.dbal.default_connection' => 'getDoctrine_Dbal_DefaultConnectionService',
51
            'doctrine.dbal.default_shard_manager' => 'getDoctrine_Dbal_DefaultShardManagerService',
52
            'doctrine.dbal.logger' => 'getDoctrine_Dbal_LoggerService',
53
            'doctrine.dbal.mysql_connection' => 'getDoctrine_Dbal_MysqlConnectionService',
54
            'doctrine.dbal.mysql_shard_manager' => 'getDoctrine_Dbal_MysqlShardManagerService',
55
            'doctrine.orm.default_entity_listener_resolver' => 'getDoctrine_Orm_DefaultEntityListenerResolverService',
56
            'doctrine.orm.default_entity_manager' => 'getDoctrine_Orm_DefaultEntityManagerService',
57
            'doctrine.orm.default_listeners.attach_entity_listeners' => 'getDoctrine_Orm_DefaultListeners_AttachEntityListenersService',
58
            'doctrine.orm.default_manager_configurator' => 'getDoctrine_Orm_DefaultManagerConfiguratorService',
59
            'doctrine.orm.mysql_entity_listener_resolver' => 'getDoctrine_Orm_MysqlEntityListenerResolverService',
60
            'doctrine.orm.mysql_entity_manager' => 'getDoctrine_Orm_MysqlEntityManagerService',
61
            'doctrine.orm.mysql_listeners.attach_entity_listeners' => 'getDoctrine_Orm_MysqlListeners_AttachEntityListenersService',
62
            'doctrine.orm.mysql_manager_configurator' => 'getDoctrine_Orm_MysqlManagerConfiguratorService',
63
            'doctrine.orm.naming_strategy.default' => 'getDoctrine_Orm_NamingStrategy_DefaultService',
64
            'doctrine.orm.quote_strategy.default' => 'getDoctrine_Orm_QuoteStrategy_DefaultService',
65
            'doctrine.orm.validator.unique' => 'getDoctrine_Orm_Validator_UniqueService',
66
            'doctrine.orm.validator_initializer' => 'getDoctrine_Orm_ValidatorInitializerService',
67
            'doctrine_cache.providers.doctrine.orm.default_metadata_cache' => 'getDoctrineCache_Providers_Doctrine_Orm_DefaultMetadataCacheService',
68
            'doctrine_cache.providers.doctrine.orm.default_query_cache' => 'getDoctrineCache_Providers_Doctrine_Orm_DefaultQueryCacheService',
69
            'doctrine_cache.providers.doctrine.orm.default_result_cache' => 'getDoctrineCache_Providers_Doctrine_Orm_DefaultResultCacheService',
70
            'doctrine_cache.providers.doctrine.orm.mysql_metadata_cache' => 'getDoctrineCache_Providers_Doctrine_Orm_MysqlMetadataCacheService',
71
            'doctrine_cache.providers.doctrine.orm.mysql_query_cache' => 'getDoctrineCache_Providers_Doctrine_Orm_MysqlQueryCacheService',
72
            'doctrine_cache.providers.doctrine.orm.mysql_result_cache' => 'getDoctrineCache_Providers_Doctrine_Orm_MysqlResultCacheService',
73
            'faker.provider.foo' => 'getFaker_Provider_FooService',
74
            'file_locator' => 'getFileLocatorService',
75
            'filesystem' => 'getFilesystemService',
76
            'form.factory' => 'getForm_FactoryService',
77
            'form.registry' => 'getForm_RegistryService',
78
            'form.resolved_type_factory' => 'getForm_ResolvedTypeFactoryService',
79
            'form.type.birthday' => 'getForm_Type_BirthdayService',
80
            'form.type.button' => 'getForm_Type_ButtonService',
81
            'form.type.checkbox' => 'getForm_Type_CheckboxService',
82
            'form.type.choice' => 'getForm_Type_ChoiceService',
83
            'form.type.collection' => 'getForm_Type_CollectionService',
84
            'form.type.country' => 'getForm_Type_CountryService',
85
            'form.type.currency' => 'getForm_Type_CurrencyService',
86
            'form.type.date' => 'getForm_Type_DateService',
87
            'form.type.datetime' => 'getForm_Type_DatetimeService',
88
            'form.type.email' => 'getForm_Type_EmailService',
89
            'form.type.entity' => 'getForm_Type_EntityService',
90
            'form.type.file' => 'getForm_Type_FileService',
91
            'form.type.form' => 'getForm_Type_FormService',
92
            'form.type.hidden' => 'getForm_Type_HiddenService',
93
            'form.type.integer' => 'getForm_Type_IntegerService',
94
            'form.type.language' => 'getForm_Type_LanguageService',
95
            'form.type.locale' => 'getForm_Type_LocaleService',
96
            'form.type.money' => 'getForm_Type_MoneyService',
97
            'form.type.number' => 'getForm_Type_NumberService',
98
            'form.type.password' => 'getForm_Type_PasswordService',
99
            'form.type.percent' => 'getForm_Type_PercentService',
100
            'form.type.radio' => 'getForm_Type_RadioService',
101
            'form.type.range' => 'getForm_Type_RangeService',
102
            'form.type.repeated' => 'getForm_Type_RepeatedService',
103
            'form.type.reset' => 'getForm_Type_ResetService',
104
            'form.type.search' => 'getForm_Type_SearchService',
105
            'form.type.submit' => 'getForm_Type_SubmitService',
106
            'form.type.text' => 'getForm_Type_TextService',
107
            'form.type.textarea' => 'getForm_Type_TextareaService',
108
            'form.type.time' => 'getForm_Type_TimeService',
109
            'form.type.timezone' => 'getForm_Type_TimezoneService',
110
            'form.type.url' => 'getForm_Type_UrlService',
111
            'form.type_extension.form.http_foundation' => 'getForm_TypeExtension_Form_HttpFoundationService',
112
            'form.type_extension.form.validator' => 'getForm_TypeExtension_Form_ValidatorService',
113
            'form.type_extension.repeated.validator' => 'getForm_TypeExtension_Repeated_ValidatorService',
114
            'form.type_extension.submit.validator' => 'getForm_TypeExtension_Submit_ValidatorService',
115
            'form.type_extension.upload.validator' => 'getForm_TypeExtension_Upload_ValidatorService',
116
            'form.type_guesser.doctrine' => 'getForm_TypeGuesser_DoctrineService',
117
            'form.type_guesser.validator' => 'getForm_TypeGuesser_ValidatorService',
118
            'fragment.handler' => 'getFragment_HandlerService',
119
            'fragment.renderer.esi' => 'getFragment_Renderer_EsiService',
120
            'fragment.renderer.hinclude' => 'getFragment_Renderer_HincludeService',
121
            'fragment.renderer.inline' => 'getFragment_Renderer_InlineService',
122
            'fragment.renderer.ssi' => 'getFragment_Renderer_SsiService',
123
            'hautelook_alice.alice.fixtures.loader' => 'getHautelookAlice_Alice_Fixtures_LoaderService',
124
            'hautelook_alice.alice.processor_chain' => 'getHautelookAlice_Alice_ProcessorChainService',
125
            'hautelook_alice.bundle_resolver' => 'getHautelookAlice_BundleResolverService',
126
            'hautelook_alice.doctrine.command.deprecated_load_command' => 'getHautelookAlice_Doctrine_Command_DeprecatedLoadCommandService',
127
            'hautelook_alice.doctrine.command.load_command' => 'getHautelookAlice_Doctrine_Command_LoadCommandService',
128
            'hautelook_alice.doctrine.command_factory' => 'getHautelookAlice_Doctrine_CommandFactoryService',
129
            'hautelook_alice.doctrine.executor.fixtures_executor' => 'getHautelookAlice_Doctrine_Executor_FixturesExecutorService',
130
            'hautelook_alice.doctrine.orm.fixtures_finder' => 'getHautelookAlice_Doctrine_Orm_FixturesFinderService',
131
            'hautelook_alice.doctrine.orm.loader_generator' => 'getHautelookAlice_Doctrine_Orm_LoaderGeneratorService',
132
            'hautelook_alice.faker' => 'getHautelookAlice_FakerService',
133
            'hautelook_alice.faker.provider_chain' => 'getHautelookAlice_Faker_ProviderChainService',
134
            'hautelook_alice.fixtures.loader' => 'getHautelookAlice_Fixtures_LoaderService',
135
            'http_kernel' => 'getHttpKernelService',
136
            'kernel' => 'getKernelService',
137
            'kernel.class_cache.cache_warmer' => 'getKernel_ClassCache_CacheWarmerService',
138
            'locale_listener' => 'getLocaleListenerService',
139
            'property_accessor' => 'getPropertyAccessorService',
140
            'request_stack' => 'getRequestStackService',
141
            'response_listener' => 'getResponseListenerService',
142
            'router' => 'getRouterService',
143
            'router.request_context' => 'getRouter_RequestContextService',
144
            'router_listener' => 'getRouterListenerService',
145
            'routing.loader' => 'getRouting_LoaderService',
146
            'service_container' => 'getServiceContainerService',
147
            'session' => 'getSessionService',
148
            'session.handler' => 'getSession_HandlerService',
149
            'session.save_listener' => 'getSession_SaveListenerService',
150
            'session.storage.filesystem' => 'getSession_Storage_FilesystemService',
151
            'session.storage.metadata_bag' => 'getSession_Storage_MetadataBagService',
152
            'session.storage.native' => 'getSession_Storage_NativeService',
153
            'session.storage.php_bridge' => 'getSession_Storage_PhpBridgeService',
154
            'session_listener' => 'getSessionListenerService',
155
            'streamed_response_listener' => 'getStreamedResponseListenerService',
156
            'test.client' => 'getTest_ClientService',
157
            'test.client.cookiejar' => 'getTest_Client_CookiejarService',
158
            'test.client.history' => 'getTest_Client_HistoryService',
159
            'test.session.listener' => 'getTest_Session_ListenerService',
160
            'translation.dumper.csv' => 'getTranslation_Dumper_CsvService',
161
            'translation.dumper.ini' => 'getTranslation_Dumper_IniService',
162
            'translation.dumper.json' => 'getTranslation_Dumper_JsonService',
163
            'translation.dumper.mo' => 'getTranslation_Dumper_MoService',
164
            'translation.dumper.php' => 'getTranslation_Dumper_PhpService',
165
            'translation.dumper.po' => 'getTranslation_Dumper_PoService',
166
            'translation.dumper.qt' => 'getTranslation_Dumper_QtService',
167
            'translation.dumper.res' => 'getTranslation_Dumper_ResService',
168
            'translation.dumper.xliff' => 'getTranslation_Dumper_XliffService',
169
            'translation.dumper.yml' => 'getTranslation_Dumper_YmlService',
170
            'translation.extractor' => 'getTranslation_ExtractorService',
171
            'translation.extractor.php' => 'getTranslation_Extractor_PhpService',
172
            'translation.loader' => 'getTranslation_LoaderService',
173
            'translation.loader.csv' => 'getTranslation_Loader_CsvService',
174
            'translation.loader.dat' => 'getTranslation_Loader_DatService',
175
            'translation.loader.ini' => 'getTranslation_Loader_IniService',
176
            'translation.loader.json' => 'getTranslation_Loader_JsonService',
177
            'translation.loader.mo' => 'getTranslation_Loader_MoService',
178
            'translation.loader.php' => 'getTranslation_Loader_PhpService',
179
            'translation.loader.po' => 'getTranslation_Loader_PoService',
180
            'translation.loader.qt' => 'getTranslation_Loader_QtService',
181
            'translation.loader.res' => 'getTranslation_Loader_ResService',
182
            'translation.loader.xliff' => 'getTranslation_Loader_XliffService',
183
            'translation.loader.yml' => 'getTranslation_Loader_YmlService',
184
            'translation.writer' => 'getTranslation_WriterService',
185
            'translator' => 'getTranslatorService',
186
            'translator.default' => 'getTranslator_DefaultService',
187
            'translator.selector' => 'getTranslator_SelectorService',
188
            'translator_listener' => 'getTranslatorListenerService',
189
            'uri_signer' => 'getUriSignerService',
190
            'validate_request_listener' => 'getValidateRequestListenerService',
191
            'validator' => 'getValidatorService',
192
            'validator.builder' => 'getValidator_BuilderService',
193
            'validator.email' => 'getValidator_EmailService',
194
            'validator.expression' => 'getValidator_ExpressionService',
195
        );
196
        $this->aliases = array(
197
            'console.command.hautelook_alicebundle_doctrine_command_loaddatafixturescommand' => 'hautelook_alice.doctrine.command.load_command',
198
            'database_connection' => 'doctrine.dbal.default_connection',
199
            'doctrine.orm.default_metadata_cache' => 'doctrine_cache.providers.doctrine.orm.default_metadata_cache',
200
            'doctrine.orm.default_query_cache' => 'doctrine_cache.providers.doctrine.orm.default_query_cache',
201
            'doctrine.orm.default_result_cache' => 'doctrine_cache.providers.doctrine.orm.default_result_cache',
202
            'doctrine.orm.entity_manager' => 'doctrine.orm.default_entity_manager',
203
            'doctrine.orm.mysql_metadata_cache' => 'doctrine_cache.providers.doctrine.orm.mysql_metadata_cache',
204
            'doctrine.orm.mysql_query_cache' => 'doctrine_cache.providers.doctrine.orm.mysql_query_cache',
205
            'doctrine.orm.mysql_result_cache' => 'doctrine_cache.providers.doctrine.orm.mysql_result_cache',
206
            'event_dispatcher' => 'debug.event_dispatcher',
207
            'session.storage' => 'session.storage.native',
208
        );
209
    }
210
211
    /**
212
     * {@inheritdoc}
213
     */
214
    public function compile()
215
    {
216
        throw new LogicException('You cannot compile a dumped frozen container.');
217
    }
218
219
    /**
220
     * Gets the 'alice.processor.entity_managers' service.
221
     *
222
     * This service is shared.
223
     * This method always returns the same instance of the service.
224
     *
225
     * @return \Hautelook\AliceBundle\Tests\SymfonyApp\TestBundle\DataFixtures\Processor\BrandProcessor A Hautelook\AliceBundle\Tests\SymfonyApp\TestBundle\DataFixtures\Processor\BrandProcessor instance
226
     */
227
    protected function getAlice_Processor_EntityManagersService()
228
    {
229
        return $this->services['alice.processor.entity_managers'] = new \Hautelook\AliceBundle\Tests\SymfonyApp\TestBundle\DataFixtures\Processor\BrandProcessor();
230
    }
231
232
    /**
233
     * Gets the 'annotation_reader' service.
234
     *
235
     * This service is shared.
236
     * This method always returns the same instance of the service.
237
     *
238
     * @return \Doctrine\Common\Annotations\CachedReader A Doctrine\Common\Annotations\CachedReader instance
239
     */
240
    protected function getAnnotationReaderService()
241
    {
242
        return $this->services['annotation_reader'] = new \Doctrine\Common\Annotations\CachedReader(new \Doctrine\Common\Annotations\AnnotationReader(), new \Doctrine\Common\Cache\FilesystemCache((__DIR__.'/annotations')), true);
243
    }
244
245
    /**
246
     * Gets the 'cache.app' service.
247
     *
248
     * This service is shared.
249
     * This method always returns the same instance of the service.
250
     *
251
     * @return \Symfony\Component\Cache\Adapter\FilesystemAdapter A Symfony\Component\Cache\Adapter\FilesystemAdapter instance
252
     */
253
    protected function getCache_AppService()
254
    {
255
        return $this->services['cache.app'] = new \Symfony\Component\Cache\Adapter\FilesystemAdapter('KLstWMFhz6', '', (__DIR__.'/pools'));
256
    }
257
258
    /**
259
     * Gets the 'cache.default_redis_provider' service.
260
     *
261
     * This service is shared.
262
     * This method always returns the same instance of the service.
263
     *
264
     * @return \Redis A Redis instance
265
     */
266
    protected function getCache_DefaultRedisProviderService()
267
    {
268
        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 268 which is incompatible with the return type documented by SymfonyAppTestDebugProje...ultRedisProviderService of type Redis.
Loading history...
269
    }
270
271
    /**
272
     * Gets the 'cache.system' service.
273
     *
274
     * This service is shared.
275
     * This method always returns the same instance of the service.
276
     *
277
     * @return \Symfony\Component\Cache\Adapter\AdapterInterface A Symfony\Component\Cache\Adapter\AdapterInterface instance
278
     */
279
    protected function getCache_SystemService()
280
    {
281
        return $this->services['cache.system'] = \Symfony\Component\Cache\Adapter\AbstractAdapter::createSystemCache('ckvP35-C8m', '', '2iqIOKMGWd2dLoqqNottgg', (__DIR__.'/pools'), NULL);
282
    }
283
284
    /**
285
     * Gets the 'cache_clearer' service.
286
     *
287
     * This service is shared.
288
     * This method always returns the same instance of the service.
289
     *
290
     * @return \Symfony\Component\HttpKernel\CacheClearer\ChainCacheClearer A Symfony\Component\HttpKernel\CacheClearer\ChainCacheClearer instance
291
     */
292
    protected function getCacheClearerService()
293
    {
294
        $a = new \Symfony\Component\HttpKernel\CacheClearer\Psr6CacheClearer();
295
        $a->addPool($this->get('cache.app'));
296
        $a->addPool($this->get('cache.system'));
297
        $a->addPool(\Symfony\Component\Cache\Adapter\AbstractAdapter::createSystemCache('3N1Ihsn5qt', '', '2iqIOKMGWd2dLoqqNottgg', (__DIR__.'/pools'), NULL));
298
        $a->addPool(\Symfony\Component\Cache\Adapter\AbstractAdapter::createSystemCache('PjEJH5kVIr', '', '2iqIOKMGWd2dLoqqNottgg', (__DIR__.'/pools'), NULL));
299
300
        return $this->services['cache_clearer'] = new \Symfony\Component\HttpKernel\CacheClearer\ChainCacheClearer(array(0 => $a));
301
    }
302
303
    /**
304
     * Gets the 'cache_warmer' service.
305
     *
306
     * This service is shared.
307
     * This method always returns the same instance of the service.
308
     *
309
     * @return \Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate A Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate instance
310
     */
311
    protected function getCacheWarmerService()
312
    {
313
        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')), 3 => new \Symfony\Bridge\Doctrine\CacheWarmer\ProxyCacheWarmer($this->get('doctrine'))));
314
    }
315
316
    /**
317
     * Gets the 'config_cache_factory' service.
318
     *
319
     * This service is shared.
320
     * This method always returns the same instance of the service.
321
     *
322
     * @return \Symfony\Component\Config\ResourceCheckerConfigCacheFactory A Symfony\Component\Config\ResourceCheckerConfigCacheFactory instance
323
     */
324
    protected function getConfigCacheFactoryService()
325
    {
326
        return $this->services['config_cache_factory'] = new \Symfony\Component\Config\ResourceCheckerConfigCacheFactory(array(0 => new \Symfony\Component\Config\Resource\SelfCheckingResourceChecker()));
327
    }
328
329
    /**
330
     * Gets the 'debug.argument_resolver' service.
331
     *
332
     * This service is shared.
333
     * This method always returns the same instance of the service.
334
     *
335
     * @return \Symfony\Component\HttpKernel\Controller\TraceableArgumentResolver A Symfony\Component\HttpKernel\Controller\TraceableArgumentResolver instance
336
     */
337
    protected function getDebug_ArgumentResolverService()
338
    {
339
        return $this->services['debug.argument_resolver'] = new \Symfony\Component\HttpKernel\Controller\TraceableArgumentResolver(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())), $this->get('debug.stopwatch'));
340
    }
341
342
    /**
343
     * Gets the 'debug.controller_resolver' service.
344
     *
345
     * This service is shared.
346
     * This method always returns the same instance of the service.
347
     *
348
     * @return \Symfony\Component\HttpKernel\Controller\TraceableControllerResolver A Symfony\Component\HttpKernel\Controller\TraceableControllerResolver instance
349
     */
350
    protected function getDebug_ControllerResolverService()
351
    {
352
        return $this->services['debug.controller_resolver'] = new \Symfony\Component\HttpKernel\Controller\TraceableControllerResolver(new \Symfony\Bundle\FrameworkBundle\Controller\ControllerResolver($this, $this->get('controller_name_converter'), NULL), $this->get('debug.stopwatch'), $this->get('debug.argument_resolver'));
353
    }
354
355
    /**
356
     * Gets the 'debug.debug_handlers_listener' service.
357
     *
358
     * This service is shared.
359
     * This method always returns the same instance of the service.
360
     *
361
     * @return \Symfony\Component\HttpKernel\EventListener\DebugHandlersListener A Symfony\Component\HttpKernel\EventListener\DebugHandlersListener instance
362
     */
363
    protected function getDebug_DebugHandlersListenerService()
364
    {
365
        return $this->services['debug.debug_handlers_listener'] = new \Symfony\Component\HttpKernel\EventListener\DebugHandlersListener(NULL, NULL, 28586, NULL, true, NULL);
366
    }
367
368
    /**
369
     * Gets the 'debug.event_dispatcher' service.
370
     *
371
     * This service is shared.
372
     * This method always returns the same instance of the service.
373
     *
374
     * @return \Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher A Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher instance
375
     */
376 View Code Duplication
    protected function getDebug_EventDispatcherService()
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...
377
    {
378
        $this->services['debug.event_dispatcher'] = $instance = new \Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher(new \Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher($this), $this->get('debug.stopwatch'), NULL);
379
380
        $instance->addSubscriberService('response_listener', 'Symfony\\Component\\HttpKernel\\EventListener\\ResponseListener');
381
        $instance->addSubscriberService('streamed_response_listener', 'Symfony\\Component\\HttpKernel\\EventListener\\StreamedResponseListener');
382
        $instance->addSubscriberService('locale_listener', 'Symfony\\Component\\HttpKernel\\EventListener\\LocaleListener');
383
        $instance->addSubscriberService('translator_listener', 'Symfony\\Component\\HttpKernel\\EventListener\\TranslatorListener');
384
        $instance->addSubscriberService('validate_request_listener', 'Symfony\\Component\\HttpKernel\\EventListener\\ValidateRequestListener');
385
        $instance->addSubscriberService('test.session.listener', 'Symfony\\Bundle\\FrameworkBundle\\EventListener\\TestSessionListener');
386
        $instance->addSubscriberService('session_listener', 'Symfony\\Bundle\\FrameworkBundle\\EventListener\\SessionListener');
387
        $instance->addSubscriberService('session.save_listener', 'Symfony\\Component\\HttpKernel\\EventListener\\SaveSessionListener');
388
        $instance->addSubscriberService('router_listener', 'Symfony\\Component\\HttpKernel\\EventListener\\RouterListener');
389
        $instance->addSubscriberService('debug.debug_handlers_listener', 'Symfony\\Component\\HttpKernel\\EventListener\\DebugHandlersListener');
390
391
        return $instance;
392
    }
393
394
    /**
395
     * Gets the 'debug.stopwatch' service.
396
     *
397
     * This service is shared.
398
     * This method always returns the same instance of the service.
399
     *
400
     * @return \Symfony\Component\Stopwatch\Stopwatch A Symfony\Component\Stopwatch\Stopwatch instance
401
     */
402
    protected function getDebug_StopwatchService()
403
    {
404
        return $this->services['debug.stopwatch'] = new \Symfony\Component\Stopwatch\Stopwatch();
405
    }
406
407
    /**
408
     * Gets the 'doctrine' service.
409
     *
410
     * This service is shared.
411
     * This method always returns the same instance of the service.
412
     *
413
     * @return \Doctrine\Bundle\DoctrineBundle\Registry A Doctrine\Bundle\DoctrineBundle\Registry instance
414
     */
415
    protected function getDoctrineService()
416
    {
417
        return $this->services['doctrine'] = new \Doctrine\Bundle\DoctrineBundle\Registry($this, array('default' => 'doctrine.dbal.default_connection', 'mysql' => 'doctrine.dbal.mysql_connection'), array('default' => 'doctrine.orm.default_entity_manager', 'mysql' => 'doctrine.orm.mysql_entity_manager'), 'default', 'default');
418
    }
419
420
    /**
421
     * Gets the 'doctrine.dbal.connection_factory' service.
422
     *
423
     * This service is shared.
424
     * This method always returns the same instance of the service.
425
     *
426
     * @return \Doctrine\Bundle\DoctrineBundle\ConnectionFactory A Doctrine\Bundle\DoctrineBundle\ConnectionFactory instance
427
     */
428
    protected function getDoctrine_Dbal_ConnectionFactoryService()
429
    {
430
        return $this->services['doctrine.dbal.connection_factory'] = new \Doctrine\Bundle\DoctrineBundle\ConnectionFactory(array());
431
    }
432
433
    /**
434
     * Gets the 'doctrine.dbal.default_connection' service.
435
     *
436
     * This service is shared.
437
     * This method always returns the same instance of the service.
438
     *
439
     * @return \Doctrine\DBAL\Connection A Doctrine\DBAL\Connection instance
440
     */
441
    protected function getDoctrine_Dbal_DefaultConnectionService()
442
    {
443
        $a = new \Doctrine\DBAL\Logging\LoggerChain();
444
        $a->addLogger($this->get('doctrine.dbal.logger'));
445
        $a->addLogger(new \Doctrine\DBAL\Logging\DebugStack());
446
447
        $b = new \Doctrine\DBAL\Configuration();
448
        $b->setSQLLogger($a);
449
450
        $c = new \Symfony\Bridge\Doctrine\ContainerAwareEventManager($this);
451
        $c->addEventListener(array(0 => 'loadClassMetadata'), $this->get('doctrine.orm.mysql_listeners.attach_entity_listeners'));
452
        $c->addEventListener(array(0 => 'loadClassMetadata'), $this->get('doctrine.orm.default_listeners.attach_entity_listeners'));
453
454
        return $this->services['doctrine.dbal.default_connection'] = $this->get('doctrine.dbal.connection_factory')->createConnection(array('driver' => 'pdo_sqlite', 'shards' => array(0 => array('id' => 1, 'path' => (__DIR__.'/db_shard.sqlite'), 'host' => 'localhost', 'port' => NULL, 'user' => 'root', 'password' => NULL)), 'driverOptions' => array(), 'wrapperClass' => 'Doctrine\\DBAL\\Sharding\\PoolingShardConnection', 'shardChoser' => 'Doctrine\\DBAL\\Sharding\\ShardChoser\\MultiTenantShardChoser', 'global' => array('path' => (__DIR__.'/db.sqlite'), 'charset' => 'UTF8', 'host' => 'localhost', 'port' => NULL, 'user' => 'root', 'password' => NULL), 'shardManagerClass' => 'Doctrine\\DBAL\\Sharding\\PoolingShardManager'), $b, $c, array());
455
    }
456
457
    /**
458
     * Gets the 'doctrine.dbal.default_shard_manager' service.
459
     *
460
     * This service is shared.
461
     * This method always returns the same instance of the service.
462
     *
463
     * @return \Doctrine\DBAL\Sharding\PoolingShardManager A Doctrine\DBAL\Sharding\PoolingShardManager instance
464
     */
465
    protected function getDoctrine_Dbal_DefaultShardManagerService()
466
    {
467
        return $this->services['doctrine.dbal.default_shard_manager'] = new \Doctrine\DBAL\Sharding\PoolingShardManager($this->get('doctrine.dbal.default_connection'));
468
    }
469
470
    /**
471
     * Gets the 'doctrine.dbal.mysql_connection' service.
472
     *
473
     * This service is shared.
474
     * This method always returns the same instance of the service.
475
     *
476
     * @return \Doctrine\DBAL\Connection A Doctrine\DBAL\Connection instance
477
     */
478
    protected function getDoctrine_Dbal_MysqlConnectionService()
479
    {
480
        $a = new \Doctrine\DBAL\Logging\LoggerChain();
481
        $a->addLogger($this->get('doctrine.dbal.logger'));
482
        $a->addLogger(new \Doctrine\DBAL\Logging\DebugStack());
483
484
        $b = new \Doctrine\DBAL\Configuration();
485
        $b->setSQLLogger($a);
486
487
        $c = new \Symfony\Bridge\Doctrine\ContainerAwareEventManager($this);
488
        $c->addEventListener(array(0 => 'loadClassMetadata'), $this->get('doctrine.orm.mysql_listeners.attach_entity_listeners'));
489
        $c->addEventListener(array(0 => 'loadClassMetadata'), $this->get('doctrine.orm.default_listeners.attach_entity_listeners'));
490
491
        return $this->services['doctrine.dbal.mysql_connection'] = $this->get('doctrine.dbal.connection_factory')->createConnection(array('driver' => 'pdo_mysql', 'shards' => array(0 => array('id' => 1, 'host' => 'localhost', 'port' => 3306, 'dbname' => 'alice_shard_1', 'user' => 'root', 'password' => '', 'charset' => 'utf8')), 'driverOptions' => array(), 'wrapperClass' => 'Doctrine\\DBAL\\Sharding\\PoolingShardConnection', 'shardChoser' => 'Doctrine\\DBAL\\Sharding\\ShardChoser\\MultiTenantShardChoser', 'serverVersion' => 5.5999999999999996, 'global' => array('host' => 'localhost', 'port' => 3306, 'dbname' => 'alice', 'user' => 'root', 'password' => '', 'charset' => 'utf8'), 'shardManagerClass' => 'Doctrine\\DBAL\\Sharding\\PoolingShardManager'), $b, $c, array());
492
    }
493
494
    /**
495
     * Gets the 'doctrine.dbal.mysql_shard_manager' service.
496
     *
497
     * This service is shared.
498
     * This method always returns the same instance of the service.
499
     *
500
     * @return \Doctrine\DBAL\Sharding\PoolingShardManager A Doctrine\DBAL\Sharding\PoolingShardManager instance
501
     */
502
    protected function getDoctrine_Dbal_MysqlShardManagerService()
503
    {
504
        return $this->services['doctrine.dbal.mysql_shard_manager'] = new \Doctrine\DBAL\Sharding\PoolingShardManager($this->get('doctrine.dbal.mysql_connection'));
505
    }
506
507
    /**
508
     * Gets the 'doctrine.orm.default_entity_listener_resolver' service.
509
     *
510
     * This service is shared.
511
     * This method always returns the same instance of the service.
512
     *
513
     * @return \Doctrine\ORM\Mapping\DefaultEntityListenerResolver A Doctrine\ORM\Mapping\DefaultEntityListenerResolver instance
514
     */
515
    protected function getDoctrine_Orm_DefaultEntityListenerResolverService()
516
    {
517
        return $this->services['doctrine.orm.default_entity_listener_resolver'] = new \Doctrine\ORM\Mapping\DefaultEntityListenerResolver();
518
    }
519
520
    /**
521
     * Gets the 'doctrine.orm.default_entity_manager' service.
522
     *
523
     * This service is shared.
524
     * This method always returns the same instance of the service.
525
     *
526
     * @return \Doctrine\ORM\EntityManager A Doctrine\ORM\EntityManager instance
527
     */
528 View Code Duplication
    protected function getDoctrine_Orm_DefaultEntityManagerService()
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...
529
    {
530
        $a = $this->get('annotation_reader');
531
532
        $b = new \Doctrine\ORM\Mapping\Driver\AnnotationDriver($a, array(0 => ($this->targetDirs[2].'/TestBundle/Entity'), 1 => ($this->targetDirs[2].'/TestBundle/Bundle/ABundle/Entity'), 2 => ($this->targetDirs[2].'/TestBundle/Bundle/BBundle/Entity')));
533
534
        $c = new \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain();
535
        $c->addDriver($b, 'Hautelook\\AliceBundle\\Tests\\SymfonyApp\\TestBundle\\Entity');
536
        $c->addDriver($b, 'Hautelook\\AliceBundle\\Tests\\SymfonyApp\\TestBundle\\Bundle\\ABundle\\Entity');
537
        $c->addDriver($b, 'Hautelook\\AliceBundle\\Tests\\SymfonyApp\\TestBundle\\Bundle\\BBundle\\Entity');
538
539
        $d = new \Doctrine\ORM\Configuration();
540
        $d->setEntityNamespaces(array('TestBundle' => 'Hautelook\\AliceBundle\\Tests\\SymfonyApp\\TestBundle\\Entity', 'TestABundle' => 'Hautelook\\AliceBundle\\Tests\\SymfonyApp\\TestBundle\\Bundle\\ABundle\\Entity', 'TestBBundle' => 'Hautelook\\AliceBundle\\Tests\\SymfonyApp\\TestBundle\\Bundle\\BBundle\\Entity'));
541
        $d->setMetadataCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_metadata_cache'));
542
        $d->setQueryCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_query_cache'));
543
        $d->setResultCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_result_cache'));
544
        $d->setMetadataDriverImpl($c);
545
        $d->setProxyDir((__DIR__.'/doctrine/orm/Proxies'));
546
        $d->setProxyNamespace('Proxies');
547
        $d->setAutoGenerateProxyClasses(false);
548
        $d->setClassMetadataFactoryName('Doctrine\\ORM\\Mapping\\ClassMetadataFactory');
549
        $d->setDefaultRepositoryClassName('Doctrine\\ORM\\EntityRepository');
550
        $d->setNamingStrategy($this->get('doctrine.orm.naming_strategy.default'));
551
        $d->setQuoteStrategy($this->get('doctrine.orm.quote_strategy.default'));
552
        $d->setEntityListenerResolver($this->get('doctrine.orm.default_entity_listener_resolver'));
553
554
        $this->services['doctrine.orm.default_entity_manager'] = $instance = \Doctrine\ORM\EntityManager::create($this->get('doctrine.dbal.default_connection'), $d);
555
556
        $this->get('doctrine.orm.default_manager_configurator')->configure($instance);
557
558
        return $instance;
559
    }
560
561
    /**
562
     * Gets the 'doctrine.orm.default_listeners.attach_entity_listeners' service.
563
     *
564
     * This service is shared.
565
     * This method always returns the same instance of the service.
566
     *
567
     * @return \Doctrine\ORM\Tools\AttachEntityListenersListener A Doctrine\ORM\Tools\AttachEntityListenersListener instance
568
     */
569
    protected function getDoctrine_Orm_DefaultListeners_AttachEntityListenersService()
570
    {
571
        return $this->services['doctrine.orm.default_listeners.attach_entity_listeners'] = new \Doctrine\ORM\Tools\AttachEntityListenersListener();
572
    }
573
574
    /**
575
     * Gets the 'doctrine.orm.default_manager_configurator' service.
576
     *
577
     * This service is shared.
578
     * This method always returns the same instance of the service.
579
     *
580
     * @return \Doctrine\Bundle\DoctrineBundle\ManagerConfigurator A Doctrine\Bundle\DoctrineBundle\ManagerConfigurator instance
581
     */
582
    protected function getDoctrine_Orm_DefaultManagerConfiguratorService()
583
    {
584
        return $this->services['doctrine.orm.default_manager_configurator'] = new \Doctrine\Bundle\DoctrineBundle\ManagerConfigurator(array(), array());
585
    }
586
587
    /**
588
     * Gets the 'doctrine.orm.mysql_entity_listener_resolver' service.
589
     *
590
     * This service is shared.
591
     * This method always returns the same instance of the service.
592
     *
593
     * @return \Doctrine\ORM\Mapping\DefaultEntityListenerResolver A Doctrine\ORM\Mapping\DefaultEntityListenerResolver instance
594
     */
595
    protected function getDoctrine_Orm_MysqlEntityListenerResolverService()
596
    {
597
        return $this->services['doctrine.orm.mysql_entity_listener_resolver'] = new \Doctrine\ORM\Mapping\DefaultEntityListenerResolver();
598
    }
599
600
    /**
601
     * Gets the 'doctrine.orm.mysql_entity_manager' service.
602
     *
603
     * This service is shared.
604
     * This method always returns the same instance of the service.
605
     *
606
     * @return \Doctrine\ORM\EntityManager A Doctrine\ORM\EntityManager instance
607
     */
608 View Code Duplication
    protected function getDoctrine_Orm_MysqlEntityManagerService()
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...
609
    {
610
        $a = $this->get('annotation_reader');
611
612
        $b = new \Doctrine\ORM\Mapping\Driver\AnnotationDriver($a, array(0 => ($this->targetDirs[2].'/TestBundle/Entity'), 1 => ($this->targetDirs[2].'/TestBundle/Bundle/ABundle/Entity'), 2 => ($this->targetDirs[2].'/TestBundle/Bundle/BBundle/Entity')));
613
614
        $c = new \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain();
615
        $c->addDriver($b, 'Hautelook\\AliceBundle\\Tests\\SymfonyApp\\TestBundle\\Entity');
616
        $c->addDriver($b, 'Hautelook\\AliceBundle\\Tests\\SymfonyApp\\TestBundle\\Bundle\\ABundle\\Entity');
617
        $c->addDriver($b, 'Hautelook\\AliceBundle\\Tests\\SymfonyApp\\TestBundle\\Bundle\\BBundle\\Entity');
618
619
        $d = new \Doctrine\ORM\Configuration();
620
        $d->setEntityNamespaces(array('TestBundle' => 'Hautelook\\AliceBundle\\Tests\\SymfonyApp\\TestBundle\\Entity', 'TestABundle' => 'Hautelook\\AliceBundle\\Tests\\SymfonyApp\\TestBundle\\Bundle\\ABundle\\Entity', 'TestBBundle' => 'Hautelook\\AliceBundle\\Tests\\SymfonyApp\\TestBundle\\Bundle\\BBundle\\Entity'));
621
        $d->setMetadataCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.mysql_metadata_cache'));
622
        $d->setQueryCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.mysql_query_cache'));
623
        $d->setResultCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.mysql_result_cache'));
624
        $d->setMetadataDriverImpl($c);
625
        $d->setProxyDir((__DIR__.'/doctrine/orm/Proxies'));
626
        $d->setProxyNamespace('Proxies');
627
        $d->setAutoGenerateProxyClasses(false);
628
        $d->setClassMetadataFactoryName('Doctrine\\ORM\\Mapping\\ClassMetadataFactory');
629
        $d->setDefaultRepositoryClassName('Doctrine\\ORM\\EntityRepository');
630
        $d->setNamingStrategy($this->get('doctrine.orm.naming_strategy.default'));
631
        $d->setQuoteStrategy($this->get('doctrine.orm.quote_strategy.default'));
632
        $d->setEntityListenerResolver($this->get('doctrine.orm.mysql_entity_listener_resolver'));
633
634
        $this->services['doctrine.orm.mysql_entity_manager'] = $instance = \Doctrine\ORM\EntityManager::create($this->get('doctrine.dbal.mysql_connection'), $d);
635
636
        $this->get('doctrine.orm.mysql_manager_configurator')->configure($instance);
637
638
        return $instance;
639
    }
640
641
    /**
642
     * Gets the 'doctrine.orm.mysql_listeners.attach_entity_listeners' service.
643
     *
644
     * This service is shared.
645
     * This method always returns the same instance of the service.
646
     *
647
     * @return \Doctrine\ORM\Tools\AttachEntityListenersListener A Doctrine\ORM\Tools\AttachEntityListenersListener instance
648
     */
649
    protected function getDoctrine_Orm_MysqlListeners_AttachEntityListenersService()
650
    {
651
        return $this->services['doctrine.orm.mysql_listeners.attach_entity_listeners'] = new \Doctrine\ORM\Tools\AttachEntityListenersListener();
652
    }
653
654
    /**
655
     * Gets the 'doctrine.orm.mysql_manager_configurator' service.
656
     *
657
     * This service is shared.
658
     * This method always returns the same instance of the service.
659
     *
660
     * @return \Doctrine\Bundle\DoctrineBundle\ManagerConfigurator A Doctrine\Bundle\DoctrineBundle\ManagerConfigurator instance
661
     */
662
    protected function getDoctrine_Orm_MysqlManagerConfiguratorService()
663
    {
664
        return $this->services['doctrine.orm.mysql_manager_configurator'] = new \Doctrine\Bundle\DoctrineBundle\ManagerConfigurator(array(), array());
665
    }
666
667
    /**
668
     * Gets the 'doctrine.orm.validator.unique' service.
669
     *
670
     * This service is shared.
671
     * This method always returns the same instance of the service.
672
     *
673
     * @return \Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntityValidator A Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntityValidator instance
674
     */
675
    protected function getDoctrine_Orm_Validator_UniqueService()
676
    {
677
        return $this->services['doctrine.orm.validator.unique'] = new \Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntityValidator($this->get('doctrine'));
678
    }
679
680
    /**
681
     * Gets the 'doctrine.orm.validator_initializer' service.
682
     *
683
     * This service is shared.
684
     * This method always returns the same instance of the service.
685
     *
686
     * @return \Symfony\Bridge\Doctrine\Validator\DoctrineInitializer A Symfony\Bridge\Doctrine\Validator\DoctrineInitializer instance
687
     */
688
    protected function getDoctrine_Orm_ValidatorInitializerService()
689
    {
690
        return $this->services['doctrine.orm.validator_initializer'] = new \Symfony\Bridge\Doctrine\Validator\DoctrineInitializer($this->get('doctrine'));
691
    }
692
693
    /**
694
     * Gets the 'doctrine_cache.providers.doctrine.orm.default_metadata_cache' service.
695
     *
696
     * This service is shared.
697
     * This method always returns the same instance of the service.
698
     *
699
     * @return \Doctrine\Common\Cache\ArrayCache A Doctrine\Common\Cache\ArrayCache instance
700
     */
701
    protected function getDoctrineCache_Providers_Doctrine_Orm_DefaultMetadataCacheService()
702
    {
703
        $this->services['doctrine_cache.providers.doctrine.orm.default_metadata_cache'] = $instance = new \Doctrine\Common\Cache\ArrayCache();
704
705
        $instance->setNamespace('sf2orm_default_8d244f40b236a4eb2b56f532096a063e310bb1a5c149f51a6f6966e9df0ee2b4');
706
707
        return $instance;
708
    }
709
710
    /**
711
     * Gets the 'doctrine_cache.providers.doctrine.orm.default_query_cache' service.
712
     *
713
     * This service is shared.
714
     * This method always returns the same instance of the service.
715
     *
716
     * @return \Doctrine\Common\Cache\ArrayCache A Doctrine\Common\Cache\ArrayCache instance
717
     */
718
    protected function getDoctrineCache_Providers_Doctrine_Orm_DefaultQueryCacheService()
719
    {
720
        $this->services['doctrine_cache.providers.doctrine.orm.default_query_cache'] = $instance = new \Doctrine\Common\Cache\ArrayCache();
721
722
        $instance->setNamespace('sf2orm_default_8d244f40b236a4eb2b56f532096a063e310bb1a5c149f51a6f6966e9df0ee2b4');
723
724
        return $instance;
725
    }
726
727
    /**
728
     * Gets the 'doctrine_cache.providers.doctrine.orm.default_result_cache' service.
729
     *
730
     * This service is shared.
731
     * This method always returns the same instance of the service.
732
     *
733
     * @return \Doctrine\Common\Cache\ArrayCache A Doctrine\Common\Cache\ArrayCache instance
734
     */
735
    protected function getDoctrineCache_Providers_Doctrine_Orm_DefaultResultCacheService()
736
    {
737
        $this->services['doctrine_cache.providers.doctrine.orm.default_result_cache'] = $instance = new \Doctrine\Common\Cache\ArrayCache();
738
739
        $instance->setNamespace('sf2orm_default_8d244f40b236a4eb2b56f532096a063e310bb1a5c149f51a6f6966e9df0ee2b4');
740
741
        return $instance;
742
    }
743
744
    /**
745
     * Gets the 'doctrine_cache.providers.doctrine.orm.mysql_metadata_cache' service.
746
     *
747
     * This service is shared.
748
     * This method always returns the same instance of the service.
749
     *
750
     * @return \Doctrine\Common\Cache\ArrayCache A Doctrine\Common\Cache\ArrayCache instance
751
     */
752
    protected function getDoctrineCache_Providers_Doctrine_Orm_MysqlMetadataCacheService()
753
    {
754
        $this->services['doctrine_cache.providers.doctrine.orm.mysql_metadata_cache'] = $instance = new \Doctrine\Common\Cache\ArrayCache();
755
756
        $instance->setNamespace('sf2orm_mysql_8d244f40b236a4eb2b56f532096a063e310bb1a5c149f51a6f6966e9df0ee2b4');
757
758
        return $instance;
759
    }
760
761
    /**
762
     * Gets the 'doctrine_cache.providers.doctrine.orm.mysql_query_cache' service.
763
     *
764
     * This service is shared.
765
     * This method always returns the same instance of the service.
766
     *
767
     * @return \Doctrine\Common\Cache\ArrayCache A Doctrine\Common\Cache\ArrayCache instance
768
     */
769
    protected function getDoctrineCache_Providers_Doctrine_Orm_MysqlQueryCacheService()
770
    {
771
        $this->services['doctrine_cache.providers.doctrine.orm.mysql_query_cache'] = $instance = new \Doctrine\Common\Cache\ArrayCache();
772
773
        $instance->setNamespace('sf2orm_mysql_8d244f40b236a4eb2b56f532096a063e310bb1a5c149f51a6f6966e9df0ee2b4');
774
775
        return $instance;
776
    }
777
778
    /**
779
     * Gets the 'doctrine_cache.providers.doctrine.orm.mysql_result_cache' service.
780
     *
781
     * This service is shared.
782
     * This method always returns the same instance of the service.
783
     *
784
     * @return \Doctrine\Common\Cache\ArrayCache A Doctrine\Common\Cache\ArrayCache instance
785
     */
786
    protected function getDoctrineCache_Providers_Doctrine_Orm_MysqlResultCacheService()
787
    {
788
        $this->services['doctrine_cache.providers.doctrine.orm.mysql_result_cache'] = $instance = new \Doctrine\Common\Cache\ArrayCache();
789
790
        $instance->setNamespace('sf2orm_mysql_8d244f40b236a4eb2b56f532096a063e310bb1a5c149f51a6f6966e9df0ee2b4');
791
792
        return $instance;
793
    }
794
795
    /**
796
     * Gets the 'faker.provider.foo' service.
797
     *
798
     * This service is shared.
799
     * This method always returns the same instance of the service.
800
     *
801
     * @return \Hautelook\AliceBundle\Tests\SymfonyApp\TestBundle\DataFixtures\Faker\Provider\FooProvider A Hautelook\AliceBundle\Tests\SymfonyApp\TestBundle\DataFixtures\Faker\Provider\FooProvider instance
802
     */
803
    protected function getFaker_Provider_FooService()
804
    {
805
        return $this->services['faker.provider.foo'] = new \Hautelook\AliceBundle\Tests\SymfonyApp\TestBundle\DataFixtures\Faker\Provider\FooProvider();
806
    }
807
808
    /**
809
     * Gets the 'file_locator' service.
810
     *
811
     * This service is shared.
812
     * This method always returns the same instance of the service.
813
     *
814
     * @return \Symfony\Component\HttpKernel\Config\FileLocator A Symfony\Component\HttpKernel\Config\FileLocator instance
815
     */
816
    protected function getFileLocatorService()
817
    {
818
        return $this->services['file_locator'] = new \Symfony\Component\HttpKernel\Config\FileLocator($this->get('kernel'), ($this->targetDirs[2].'/Resources'));
819
    }
820
821
    /**
822
     * Gets the 'filesystem' service.
823
     *
824
     * This service is shared.
825
     * This method always returns the same instance of the service.
826
     *
827
     * @return \Symfony\Component\Filesystem\Filesystem A Symfony\Component\Filesystem\Filesystem instance
828
     */
829
    protected function getFilesystemService()
830
    {
831
        return $this->services['filesystem'] = new \Symfony\Component\Filesystem\Filesystem();
832
    }
833
834
    /**
835
     * Gets the 'form.factory' service.
836
     *
837
     * This service is shared.
838
     * This method always returns the same instance of the service.
839
     *
840
     * @return \Symfony\Component\Form\FormFactory A Symfony\Component\Form\FormFactory instance
841
     */
842
    protected function getForm_FactoryService()
843
    {
844
        return $this->services['form.factory'] = new \Symfony\Component\Form\FormFactory($this->get('form.registry'), $this->get('form.resolved_type_factory'));
845
    }
846
847
    /**
848
     * Gets the 'form.registry' service.
849
     *
850
     * This service is shared.
851
     * This method always returns the same instance of the service.
852
     *
853
     * @return \Symfony\Component\Form\FormRegistry A Symfony\Component\Form\FormRegistry instance
854
     */
855
    protected function getForm_RegistryService()
856
    {
857
        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', 'Symfony\\Bridge\\Doctrine\\Form\\Type\\EntityType' => 'form.type.entity'), 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', 1 => 'form.type_guesser.doctrine'))), $this->get('form.resolved_type_factory'));
858
    }
859
860
    /**
861
     * Gets the 'form.resolved_type_factory' service.
862
     *
863
     * This service is shared.
864
     * This method always returns the same instance of the service.
865
     *
866
     * @return \Symfony\Component\Form\ResolvedFormTypeFactory A Symfony\Component\Form\ResolvedFormTypeFactory instance
867
     */
868
    protected function getForm_ResolvedTypeFactoryService()
869
    {
870
        return $this->services['form.resolved_type_factory'] = new \Symfony\Component\Form\ResolvedFormTypeFactory();
871
    }
872
873
    /**
874
     * Gets the 'form.type.birthday' service.
875
     *
876
     * This service is shared.
877
     * This method always returns the same instance of the service.
878
     *
879
     * @return \Symfony\Component\Form\Extension\Core\Type\BirthdayType A Symfony\Component\Form\Extension\Core\Type\BirthdayType instance
880
     *
881
     * @deprecated The "form.type.birthday" service is deprecated since Symfony 3.1 and will be removed in 4.0.
882
     */
883
    protected function getForm_Type_BirthdayService()
884
    {
885
        @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...
886
887
        return $this->services['form.type.birthday'] = new \Symfony\Component\Form\Extension\Core\Type\BirthdayType();
888
    }
889
890
    /**
891
     * Gets the 'form.type.button' service.
892
     *
893
     * This service is shared.
894
     * This method always returns the same instance of the service.
895
     *
896
     * @return \Symfony\Component\Form\Extension\Core\Type\ButtonType A Symfony\Component\Form\Extension\Core\Type\ButtonType instance
897
     *
898
     * @deprecated The "form.type.button" service is deprecated since Symfony 3.1 and will be removed in 4.0.
899
     */
900
    protected function getForm_Type_ButtonService()
901
    {
902
        @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...
903
904
        return $this->services['form.type.button'] = new \Symfony\Component\Form\Extension\Core\Type\ButtonType();
905
    }
906
907
    /**
908
     * Gets the 'form.type.checkbox' service.
909
     *
910
     * This service is shared.
911
     * This method always returns the same instance of the service.
912
     *
913
     * @return \Symfony\Component\Form\Extension\Core\Type\CheckboxType A Symfony\Component\Form\Extension\Core\Type\CheckboxType instance
914
     *
915
     * @deprecated The "form.type.checkbox" service is deprecated since Symfony 3.1 and will be removed in 4.0.
916
     */
917
    protected function getForm_Type_CheckboxService()
918
    {
919
        @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...
920
921
        return $this->services['form.type.checkbox'] = new \Symfony\Component\Form\Extension\Core\Type\CheckboxType();
922
    }
923
924
    /**
925
     * Gets the 'form.type.choice' service.
926
     *
927
     * This service is shared.
928
     * This method always returns the same instance of the service.
929
     *
930
     * @return \Symfony\Component\Form\Extension\Core\Type\ChoiceType A Symfony\Component\Form\Extension\Core\Type\ChoiceType instance
931
     */
932
    protected function getForm_Type_ChoiceService()
933
    {
934
        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'))));
935
    }
936
937
    /**
938
     * Gets the 'form.type.collection' service.
939
     *
940
     * This service is shared.
941
     * This method always returns the same instance of the service.
942
     *
943
     * @return \Symfony\Component\Form\Extension\Core\Type\CollectionType A Symfony\Component\Form\Extension\Core\Type\CollectionType instance
944
     *
945
     * @deprecated The "form.type.collection" service is deprecated since Symfony 3.1 and will be removed in 4.0.
946
     */
947
    protected function getForm_Type_CollectionService()
948
    {
949
        @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...
950
951
        return $this->services['form.type.collection'] = new \Symfony\Component\Form\Extension\Core\Type\CollectionType();
952
    }
953
954
    /**
955
     * Gets the 'form.type.country' service.
956
     *
957
     * This service is shared.
958
     * This method always returns the same instance of the service.
959
     *
960
     * @return \Symfony\Component\Form\Extension\Core\Type\CountryType A Symfony\Component\Form\Extension\Core\Type\CountryType instance
961
     *
962
     * @deprecated The "form.type.country" service is deprecated since Symfony 3.1 and will be removed in 4.0.
963
     */
964
    protected function getForm_Type_CountryService()
965
    {
966
        @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...
967
968
        return $this->services['form.type.country'] = new \Symfony\Component\Form\Extension\Core\Type\CountryType();
969
    }
970
971
    /**
972
     * Gets the 'form.type.currency' service.
973
     *
974
     * This service is shared.
975
     * This method always returns the same instance of the service.
976
     *
977
     * @return \Symfony\Component\Form\Extension\Core\Type\CurrencyType A Symfony\Component\Form\Extension\Core\Type\CurrencyType instance
978
     *
979
     * @deprecated The "form.type.currency" service is deprecated since Symfony 3.1 and will be removed in 4.0.
980
     */
981
    protected function getForm_Type_CurrencyService()
982
    {
983
        @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...
984
985
        return $this->services['form.type.currency'] = new \Symfony\Component\Form\Extension\Core\Type\CurrencyType();
986
    }
987
988
    /**
989
     * Gets the 'form.type.date' service.
990
     *
991
     * This service is shared.
992
     * This method always returns the same instance of the service.
993
     *
994
     * @return \Symfony\Component\Form\Extension\Core\Type\DateType A Symfony\Component\Form\Extension\Core\Type\DateType instance
995
     *
996
     * @deprecated The "form.type.date" service is deprecated since Symfony 3.1 and will be removed in 4.0.
997
     */
998
    protected function getForm_Type_DateService()
999
    {
1000
        @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...
1001
1002
        return $this->services['form.type.date'] = new \Symfony\Component\Form\Extension\Core\Type\DateType();
1003
    }
1004
1005
    /**
1006
     * Gets the 'form.type.datetime' service.
1007
     *
1008
     * This service is shared.
1009
     * This method always returns the same instance of the service.
1010
     *
1011
     * @return \Symfony\Component\Form\Extension\Core\Type\DateTimeType A Symfony\Component\Form\Extension\Core\Type\DateTimeType instance
1012
     *
1013
     * @deprecated The "form.type.datetime" service is deprecated since Symfony 3.1 and will be removed in 4.0.
1014
     */
1015
    protected function getForm_Type_DatetimeService()
1016
    {
1017
        @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...
1018
1019
        return $this->services['form.type.datetime'] = new \Symfony\Component\Form\Extension\Core\Type\DateTimeType();
1020
    }
1021
1022
    /**
1023
     * Gets the 'form.type.email' service.
1024
     *
1025
     * This service is shared.
1026
     * This method always returns the same instance of the service.
1027
     *
1028
     * @return \Symfony\Component\Form\Extension\Core\Type\EmailType A Symfony\Component\Form\Extension\Core\Type\EmailType instance
1029
     *
1030
     * @deprecated The "form.type.email" service is deprecated since Symfony 3.1 and will be removed in 4.0.
1031
     */
1032
    protected function getForm_Type_EmailService()
1033
    {
1034
        @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...
1035
1036
        return $this->services['form.type.email'] = new \Symfony\Component\Form\Extension\Core\Type\EmailType();
1037
    }
1038
1039
    /**
1040
     * Gets the 'form.type.entity' service.
1041
     *
1042
     * This service is shared.
1043
     * This method always returns the same instance of the service.
1044
     *
1045
     * @return \Symfony\Bridge\Doctrine\Form\Type\EntityType A Symfony\Bridge\Doctrine\Form\Type\EntityType instance
1046
     */
1047
    protected function getForm_Type_EntityService()
1048
    {
1049
        return $this->services['form.type.entity'] = new \Symfony\Bridge\Doctrine\Form\Type\EntityType($this->get('doctrine'));
1050
    }
1051
1052
    /**
1053
     * Gets the 'form.type.file' service.
1054
     *
1055
     * This service is shared.
1056
     * This method always returns the same instance of the service.
1057
     *
1058
     * @return \Symfony\Component\Form\Extension\Core\Type\FileType A Symfony\Component\Form\Extension\Core\Type\FileType instance
1059
     *
1060
     * @deprecated The "form.type.file" service is deprecated since Symfony 3.1 and will be removed in 4.0.
1061
     */
1062
    protected function getForm_Type_FileService()
1063
    {
1064
        @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...
1065
1066
        return $this->services['form.type.file'] = new \Symfony\Component\Form\Extension\Core\Type\FileType();
1067
    }
1068
1069
    /**
1070
     * Gets the 'form.type.form' service.
1071
     *
1072
     * This service is shared.
1073
     * This method always returns the same instance of the service.
1074
     *
1075
     * @return \Symfony\Component\Form\Extension\Core\Type\FormType A Symfony\Component\Form\Extension\Core\Type\FormType instance
1076
     */
1077
    protected function getForm_Type_FormService()
1078
    {
1079
        return $this->services['form.type.form'] = new \Symfony\Component\Form\Extension\Core\Type\FormType($this->get('property_accessor'));
1080
    }
1081
1082
    /**
1083
     * Gets the 'form.type.hidden' service.
1084
     *
1085
     * This service is shared.
1086
     * This method always returns the same instance of the service.
1087
     *
1088
     * @return \Symfony\Component\Form\Extension\Core\Type\HiddenType A Symfony\Component\Form\Extension\Core\Type\HiddenType instance
1089
     *
1090
     * @deprecated The "form.type.hidden" service is deprecated since Symfony 3.1 and will be removed in 4.0.
1091
     */
1092
    protected function getForm_Type_HiddenService()
1093
    {
1094
        @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...
1095
1096
        return $this->services['form.type.hidden'] = new \Symfony\Component\Form\Extension\Core\Type\HiddenType();
1097
    }
1098
1099
    /**
1100
     * Gets the 'form.type.integer' service.
1101
     *
1102
     * This service is shared.
1103
     * This method always returns the same instance of the service.
1104
     *
1105
     * @return \Symfony\Component\Form\Extension\Core\Type\IntegerType A Symfony\Component\Form\Extension\Core\Type\IntegerType instance
1106
     *
1107
     * @deprecated The "form.type.integer" service is deprecated since Symfony 3.1 and will be removed in 4.0.
1108
     */
1109
    protected function getForm_Type_IntegerService()
1110
    {
1111
        @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...
1112
1113
        return $this->services['form.type.integer'] = new \Symfony\Component\Form\Extension\Core\Type\IntegerType();
1114
    }
1115
1116
    /**
1117
     * Gets the 'form.type.language' service.
1118
     *
1119
     * This service is shared.
1120
     * This method always returns the same instance of the service.
1121
     *
1122
     * @return \Symfony\Component\Form\Extension\Core\Type\LanguageType A Symfony\Component\Form\Extension\Core\Type\LanguageType instance
1123
     *
1124
     * @deprecated The "form.type.language" service is deprecated since Symfony 3.1 and will be removed in 4.0.
1125
     */
1126
    protected function getForm_Type_LanguageService()
1127
    {
1128
        @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...
1129
1130
        return $this->services['form.type.language'] = new \Symfony\Component\Form\Extension\Core\Type\LanguageType();
1131
    }
1132
1133
    /**
1134
     * Gets the 'form.type.locale' service.
1135
     *
1136
     * This service is shared.
1137
     * This method always returns the same instance of the service.
1138
     *
1139
     * @return \Symfony\Component\Form\Extension\Core\Type\LocaleType A Symfony\Component\Form\Extension\Core\Type\LocaleType instance
1140
     *
1141
     * @deprecated The "form.type.locale" service is deprecated since Symfony 3.1 and will be removed in 4.0.
1142
     */
1143
    protected function getForm_Type_LocaleService()
1144
    {
1145
        @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...
1146
1147
        return $this->services['form.type.locale'] = new \Symfony\Component\Form\Extension\Core\Type\LocaleType();
1148
    }
1149
1150
    /**
1151
     * Gets the 'form.type.money' service.
1152
     *
1153
     * This service is shared.
1154
     * This method always returns the same instance of the service.
1155
     *
1156
     * @return \Symfony\Component\Form\Extension\Core\Type\MoneyType A Symfony\Component\Form\Extension\Core\Type\MoneyType instance
1157
     *
1158
     * @deprecated The "form.type.money" service is deprecated since Symfony 3.1 and will be removed in 4.0.
1159
     */
1160
    protected function getForm_Type_MoneyService()
1161
    {
1162
        @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...
1163
1164
        return $this->services['form.type.money'] = new \Symfony\Component\Form\Extension\Core\Type\MoneyType();
1165
    }
1166
1167
    /**
1168
     * Gets the 'form.type.number' service.
1169
     *
1170
     * This service is shared.
1171
     * This method always returns the same instance of the service.
1172
     *
1173
     * @return \Symfony\Component\Form\Extension\Core\Type\NumberType A Symfony\Component\Form\Extension\Core\Type\NumberType instance
1174
     *
1175
     * @deprecated The "form.type.number" service is deprecated since Symfony 3.1 and will be removed in 4.0.
1176
     */
1177
    protected function getForm_Type_NumberService()
1178
    {
1179
        @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...
1180
1181
        return $this->services['form.type.number'] = new \Symfony\Component\Form\Extension\Core\Type\NumberType();
1182
    }
1183
1184
    /**
1185
     * Gets the 'form.type.password' service.
1186
     *
1187
     * This service is shared.
1188
     * This method always returns the same instance of the service.
1189
     *
1190
     * @return \Symfony\Component\Form\Extension\Core\Type\PasswordType A Symfony\Component\Form\Extension\Core\Type\PasswordType instance
1191
     *
1192
     * @deprecated The "form.type.password" service is deprecated since Symfony 3.1 and will be removed in 4.0.
1193
     */
1194
    protected function getForm_Type_PasswordService()
1195
    {
1196
        @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...
1197
1198
        return $this->services['form.type.password'] = new \Symfony\Component\Form\Extension\Core\Type\PasswordType();
1199
    }
1200
1201
    /**
1202
     * Gets the 'form.type.percent' service.
1203
     *
1204
     * This service is shared.
1205
     * This method always returns the same instance of the service.
1206
     *
1207
     * @return \Symfony\Component\Form\Extension\Core\Type\PercentType A Symfony\Component\Form\Extension\Core\Type\PercentType instance
1208
     *
1209
     * @deprecated The "form.type.percent" service is deprecated since Symfony 3.1 and will be removed in 4.0.
1210
     */
1211
    protected function getForm_Type_PercentService()
1212
    {
1213
        @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...
1214
1215
        return $this->services['form.type.percent'] = new \Symfony\Component\Form\Extension\Core\Type\PercentType();
1216
    }
1217
1218
    /**
1219
     * Gets the 'form.type.radio' service.
1220
     *
1221
     * This service is shared.
1222
     * This method always returns the same instance of the service.
1223
     *
1224
     * @return \Symfony\Component\Form\Extension\Core\Type\RadioType A Symfony\Component\Form\Extension\Core\Type\RadioType instance
1225
     *
1226
     * @deprecated The "form.type.radio" service is deprecated since Symfony 3.1 and will be removed in 4.0.
1227
     */
1228
    protected function getForm_Type_RadioService()
1229
    {
1230
        @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...
1231
1232
        return $this->services['form.type.radio'] = new \Symfony\Component\Form\Extension\Core\Type\RadioType();
1233
    }
1234
1235
    /**
1236
     * Gets the 'form.type.range' service.
1237
     *
1238
     * This service is shared.
1239
     * This method always returns the same instance of the service.
1240
     *
1241
     * @return \Symfony\Component\Form\Extension\Core\Type\RangeType A Symfony\Component\Form\Extension\Core\Type\RangeType instance
1242
     *
1243
     * @deprecated The "form.type.range" service is deprecated since Symfony 3.1 and will be removed in 4.0.
1244
     */
1245
    protected function getForm_Type_RangeService()
1246
    {
1247
        @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...
1248
1249
        return $this->services['form.type.range'] = new \Symfony\Component\Form\Extension\Core\Type\RangeType();
1250
    }
1251
1252
    /**
1253
     * Gets the 'form.type.repeated' service.
1254
     *
1255
     * This service is shared.
1256
     * This method always returns the same instance of the service.
1257
     *
1258
     * @return \Symfony\Component\Form\Extension\Core\Type\RepeatedType A Symfony\Component\Form\Extension\Core\Type\RepeatedType instance
1259
     *
1260
     * @deprecated The "form.type.repeated" service is deprecated since Symfony 3.1 and will be removed in 4.0.
1261
     */
1262
    protected function getForm_Type_RepeatedService()
1263
    {
1264
        @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...
1265
1266
        return $this->services['form.type.repeated'] = new \Symfony\Component\Form\Extension\Core\Type\RepeatedType();
1267
    }
1268
1269
    /**
1270
     * Gets the 'form.type.reset' service.
1271
     *
1272
     * This service is shared.
1273
     * This method always returns the same instance of the service.
1274
     *
1275
     * @return \Symfony\Component\Form\Extension\Core\Type\ResetType A Symfony\Component\Form\Extension\Core\Type\ResetType instance
1276
     *
1277
     * @deprecated The "form.type.reset" service is deprecated since Symfony 3.1 and will be removed in 4.0.
1278
     */
1279
    protected function getForm_Type_ResetService()
1280
    {
1281
        @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...
1282
1283
        return $this->services['form.type.reset'] = new \Symfony\Component\Form\Extension\Core\Type\ResetType();
1284
    }
1285
1286
    /**
1287
     * Gets the 'form.type.search' service.
1288
     *
1289
     * This service is shared.
1290
     * This method always returns the same instance of the service.
1291
     *
1292
     * @return \Symfony\Component\Form\Extension\Core\Type\SearchType A Symfony\Component\Form\Extension\Core\Type\SearchType instance
1293
     *
1294
     * @deprecated The "form.type.search" service is deprecated since Symfony 3.1 and will be removed in 4.0.
1295
     */
1296
    protected function getForm_Type_SearchService()
1297
    {
1298
        @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...
1299
1300
        return $this->services['form.type.search'] = new \Symfony\Component\Form\Extension\Core\Type\SearchType();
1301
    }
1302
1303
    /**
1304
     * Gets the 'form.type.submit' service.
1305
     *
1306
     * This service is shared.
1307
     * This method always returns the same instance of the service.
1308
     *
1309
     * @return \Symfony\Component\Form\Extension\Core\Type\SubmitType A Symfony\Component\Form\Extension\Core\Type\SubmitType instance
1310
     *
1311
     * @deprecated The "form.type.submit" service is deprecated since Symfony 3.1 and will be removed in 4.0.
1312
     */
1313
    protected function getForm_Type_SubmitService()
1314
    {
1315
        @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...
1316
1317
        return $this->services['form.type.submit'] = new \Symfony\Component\Form\Extension\Core\Type\SubmitType();
1318
    }
1319
1320
    /**
1321
     * Gets the 'form.type.text' service.
1322
     *
1323
     * This service is shared.
1324
     * This method always returns the same instance of the service.
1325
     *
1326
     * @return \Symfony\Component\Form\Extension\Core\Type\TextType A Symfony\Component\Form\Extension\Core\Type\TextType instance
1327
     *
1328
     * @deprecated The "form.type.text" service is deprecated since Symfony 3.1 and will be removed in 4.0.
1329
     */
1330
    protected function getForm_Type_TextService()
1331
    {
1332
        @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...
1333
1334
        return $this->services['form.type.text'] = new \Symfony\Component\Form\Extension\Core\Type\TextType();
1335
    }
1336
1337
    /**
1338
     * Gets the 'form.type.textarea' service.
1339
     *
1340
     * This service is shared.
1341
     * This method always returns the same instance of the service.
1342
     *
1343
     * @return \Symfony\Component\Form\Extension\Core\Type\TextareaType A Symfony\Component\Form\Extension\Core\Type\TextareaType instance
1344
     *
1345
     * @deprecated The "form.type.textarea" service is deprecated since Symfony 3.1 and will be removed in 4.0.
1346
     */
1347
    protected function getForm_Type_TextareaService()
1348
    {
1349
        @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...
1350
1351
        return $this->services['form.type.textarea'] = new \Symfony\Component\Form\Extension\Core\Type\TextareaType();
1352
    }
1353
1354
    /**
1355
     * Gets the 'form.type.time' service.
1356
     *
1357
     * This service is shared.
1358
     * This method always returns the same instance of the service.
1359
     *
1360
     * @return \Symfony\Component\Form\Extension\Core\Type\TimeType A Symfony\Component\Form\Extension\Core\Type\TimeType instance
1361
     *
1362
     * @deprecated The "form.type.time" service is deprecated since Symfony 3.1 and will be removed in 4.0.
1363
     */
1364
    protected function getForm_Type_TimeService()
1365
    {
1366
        @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...
1367
1368
        return $this->services['form.type.time'] = new \Symfony\Component\Form\Extension\Core\Type\TimeType();
1369
    }
1370
1371
    /**
1372
     * Gets the 'form.type.timezone' service.
1373
     *
1374
     * This service is shared.
1375
     * This method always returns the same instance of the service.
1376
     *
1377
     * @return \Symfony\Component\Form\Extension\Core\Type\TimezoneType A Symfony\Component\Form\Extension\Core\Type\TimezoneType instance
1378
     *
1379
     * @deprecated The "form.type.timezone" service is deprecated since Symfony 3.1 and will be removed in 4.0.
1380
     */
1381
    protected function getForm_Type_TimezoneService()
1382
    {
1383
        @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...
1384
1385
        return $this->services['form.type.timezone'] = new \Symfony\Component\Form\Extension\Core\Type\TimezoneType();
1386
    }
1387
1388
    /**
1389
     * Gets the 'form.type.url' service.
1390
     *
1391
     * This service is shared.
1392
     * This method always returns the same instance of the service.
1393
     *
1394
     * @return \Symfony\Component\Form\Extension\Core\Type\UrlType A Symfony\Component\Form\Extension\Core\Type\UrlType instance
1395
     *
1396
     * @deprecated The "form.type.url" service is deprecated since Symfony 3.1 and will be removed in 4.0.
1397
     */
1398
    protected function getForm_Type_UrlService()
1399
    {
1400
        @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...
1401
1402
        return $this->services['form.type.url'] = new \Symfony\Component\Form\Extension\Core\Type\UrlType();
1403
    }
1404
1405
    /**
1406
     * Gets the 'form.type_extension.form.http_foundation' service.
1407
     *
1408
     * This service is shared.
1409
     * This method always returns the same instance of the service.
1410
     *
1411
     * @return \Symfony\Component\Form\Extension\HttpFoundation\Type\FormTypeHttpFoundationExtension A Symfony\Component\Form\Extension\HttpFoundation\Type\FormTypeHttpFoundationExtension instance
1412
     */
1413
    protected function getForm_TypeExtension_Form_HttpFoundationService()
1414
    {
1415
        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'))));
1416
    }
1417
1418
    /**
1419
     * Gets the 'form.type_extension.form.validator' service.
1420
     *
1421
     * This service is shared.
1422
     * This method always returns the same instance of the service.
1423
     *
1424
     * @return \Symfony\Component\Form\Extension\Validator\Type\FormTypeValidatorExtension A Symfony\Component\Form\Extension\Validator\Type\FormTypeValidatorExtension instance
1425
     */
1426
    protected function getForm_TypeExtension_Form_ValidatorService()
1427
    {
1428
        return $this->services['form.type_extension.form.validator'] = new \Symfony\Component\Form\Extension\Validator\Type\FormTypeValidatorExtension($this->get('validator'));
1429
    }
1430
1431
    /**
1432
     * Gets the 'form.type_extension.repeated.validator' service.
1433
     *
1434
     * This service is shared.
1435
     * This method always returns the same instance of the service.
1436
     *
1437
     * @return \Symfony\Component\Form\Extension\Validator\Type\RepeatedTypeValidatorExtension A Symfony\Component\Form\Extension\Validator\Type\RepeatedTypeValidatorExtension instance
1438
     */
1439
    protected function getForm_TypeExtension_Repeated_ValidatorService()
1440
    {
1441
        return $this->services['form.type_extension.repeated.validator'] = new \Symfony\Component\Form\Extension\Validator\Type\RepeatedTypeValidatorExtension();
1442
    }
1443
1444
    /**
1445
     * Gets the 'form.type_extension.submit.validator' service.
1446
     *
1447
     * This service is shared.
1448
     * This method always returns the same instance of the service.
1449
     *
1450
     * @return \Symfony\Component\Form\Extension\Validator\Type\SubmitTypeValidatorExtension A Symfony\Component\Form\Extension\Validator\Type\SubmitTypeValidatorExtension instance
1451
     */
1452
    protected function getForm_TypeExtension_Submit_ValidatorService()
1453
    {
1454
        return $this->services['form.type_extension.submit.validator'] = new \Symfony\Component\Form\Extension\Validator\Type\SubmitTypeValidatorExtension();
1455
    }
1456
1457
    /**
1458
     * Gets the 'form.type_extension.upload.validator' service.
1459
     *
1460
     * This service is shared.
1461
     * This method always returns the same instance of the service.
1462
     *
1463
     * @return \Symfony\Component\Form\Extension\Validator\Type\UploadValidatorExtension A Symfony\Component\Form\Extension\Validator\Type\UploadValidatorExtension instance
1464
     */
1465
    protected function getForm_TypeExtension_Upload_ValidatorService()
1466
    {
1467
        return $this->services['form.type_extension.upload.validator'] = new \Symfony\Component\Form\Extension\Validator\Type\UploadValidatorExtension($this->get('translator'), 'validators');
1468
    }
1469
1470
    /**
1471
     * Gets the 'form.type_guesser.doctrine' service.
1472
     *
1473
     * This service is shared.
1474
     * This method always returns the same instance of the service.
1475
     *
1476
     * @return \Symfony\Bridge\Doctrine\Form\DoctrineOrmTypeGuesser A Symfony\Bridge\Doctrine\Form\DoctrineOrmTypeGuesser instance
1477
     */
1478
    protected function getForm_TypeGuesser_DoctrineService()
1479
    {
1480
        return $this->services['form.type_guesser.doctrine'] = new \Symfony\Bridge\Doctrine\Form\DoctrineOrmTypeGuesser($this->get('doctrine'));
1481
    }
1482
1483
    /**
1484
     * Gets the 'form.type_guesser.validator' service.
1485
     *
1486
     * This service is shared.
1487
     * This method always returns the same instance of the service.
1488
     *
1489
     * @return \Symfony\Component\Form\Extension\Validator\ValidatorTypeGuesser A Symfony\Component\Form\Extension\Validator\ValidatorTypeGuesser instance
1490
     */
1491
    protected function getForm_TypeGuesser_ValidatorService()
1492
    {
1493
        return $this->services['form.type_guesser.validator'] = new \Symfony\Component\Form\Extension\Validator\ValidatorTypeGuesser($this->get('validator'));
1494
    }
1495
1496
    /**
1497
     * Gets the 'fragment.handler' service.
1498
     *
1499
     * This service is shared.
1500
     * This method always returns the same instance of the service.
1501
     *
1502
     * @return \Symfony\Component\HttpKernel\DependencyInjection\LazyLoadingFragmentHandler A Symfony\Component\HttpKernel\DependencyInjection\LazyLoadingFragmentHandler instance
1503
     */
1504 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...
1505
    {
1506
        $this->services['fragment.handler'] = $instance = new \Symfony\Component\HttpKernel\DependencyInjection\LazyLoadingFragmentHandler($this, $this->get('request_stack'), true);
1507
1508
        $instance->addRendererService('inline', 'fragment.renderer.inline');
1509
        $instance->addRendererService('esi', 'fragment.renderer.esi');
1510
        $instance->addRendererService('ssi', 'fragment.renderer.ssi');
1511
1512
        return $instance;
1513
    }
1514
1515
    /**
1516
     * Gets the 'fragment.renderer.esi' service.
1517
     *
1518
     * This service is shared.
1519
     * This method always returns the same instance of the service.
1520
     *
1521
     * @return \Symfony\Component\HttpKernel\Fragment\EsiFragmentRenderer A Symfony\Component\HttpKernel\Fragment\EsiFragmentRenderer instance
1522
     */
1523 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...
1524
    {
1525
        $this->services['fragment.renderer.esi'] = $instance = new \Symfony\Component\HttpKernel\Fragment\EsiFragmentRenderer(NULL, $this->get('fragment.renderer.inline'), $this->get('uri_signer'));
1526
1527
        $instance->setFragmentPath('/_fragment');
1528
1529
        return $instance;
1530
    }
1531
1532
    /**
1533
     * Gets the 'fragment.renderer.hinclude' service.
1534
     *
1535
     * This service is shared.
1536
     * This method always returns the same instance of the service.
1537
     *
1538
     * @return \Symfony\Component\HttpKernel\Fragment\HIncludeFragmentRenderer A Symfony\Component\HttpKernel\Fragment\HIncludeFragmentRenderer instance
1539
     */
1540 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...
1541
    {
1542
        $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...
1543
1544
        $instance->setFragmentPath('/_fragment');
1545
1546
        return $instance;
1547
    }
1548
1549
    /**
1550
     * Gets the 'fragment.renderer.inline' service.
1551
     *
1552
     * This service is shared.
1553
     * This method always returns the same instance of the service.
1554
     *
1555
     * @return \Symfony\Component\HttpKernel\Fragment\InlineFragmentRenderer A Symfony\Component\HttpKernel\Fragment\InlineFragmentRenderer instance
1556
     */
1557 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...
1558
    {
1559
        $this->services['fragment.renderer.inline'] = $instance = new \Symfony\Component\HttpKernel\Fragment\InlineFragmentRenderer($this->get('http_kernel'), $this->get('debug.event_dispatcher'));
1560
1561
        $instance->setFragmentPath('/_fragment');
1562
1563
        return $instance;
1564
    }
1565
1566
    /**
1567
     * Gets the 'fragment.renderer.ssi' service.
1568
     *
1569
     * This service is shared.
1570
     * This method always returns the same instance of the service.
1571
     *
1572
     * @return \Symfony\Component\HttpKernel\Fragment\SsiFragmentRenderer A Symfony\Component\HttpKernel\Fragment\SsiFragmentRenderer instance
1573
     */
1574 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...
1575
    {
1576
        $this->services['fragment.renderer.ssi'] = $instance = new \Symfony\Component\HttpKernel\Fragment\SsiFragmentRenderer(NULL, $this->get('fragment.renderer.inline'), $this->get('uri_signer'));
1577
1578
        $instance->setFragmentPath('/_fragment');
1579
1580
        return $instance;
1581
    }
1582
1583
    /**
1584
     * Gets the 'hautelook_alice.alice.fixtures.loader' service.
1585
     *
1586
     * This service is shared.
1587
     * This method always returns the same instance of the service.
1588
     *
1589
     * @return \Hautelook\AliceBundle\Alice\DataFixtures\Fixtures\SimpleLoader A Hautelook\AliceBundle\Alice\DataFixtures\Fixtures\SimpleLoader instance
1590
     */
1591
    protected function getHautelookAlice_Alice_Fixtures_LoaderService()
1592
    {
1593
        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' => true, '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', 'DoctrineBundle' => 'Doctrine\\Bundle\\DoctrineBundle\\DoctrineBundle', 'DoctrineFixturesBundle' => 'Doctrine\\Bundle\\FixturesBundle\\DoctrineFixturesBundle'), 'kernel.charset' => 'UTF-8', 'kernel.container_class' => 'SymfonyAppTestDebugProjectContainer', 'database.name' => 'alice', 'database.user' => 'root', 'database.password' => '', '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.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' => -1, 'debug.container.dump' => (__DIR__.'/SymfonyAppTestDebugProjectContainer.xml'), '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));
1594
    }
1595
1596
    /**
1597
     * Gets the 'hautelook_alice.alice.processor_chain' service.
1598
     *
1599
     * This service is shared.
1600
     * This method always returns the same instance of the service.
1601
     *
1602
     * @param bool    $lazyLoad whether to try lazy-loading the service with a proxy
1603
     *
1604
     * @return \Hautelook\AliceBundle\Alice\ProcessorChain A Hautelook\AliceBundle\Alice\ProcessorChain instance
1605
     */
1606
    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...
1607
    {
1608
        return $this->services['hautelook_alice.alice.processor_chain'] = new \Hautelook\AliceBundle\Alice\ProcessorChain(array(0 => $this->get('alice.processor.entity_managers')));
1609
    }
1610
1611
    /**
1612
     * Gets the 'hautelook_alice.bundle_resolver' service.
1613
     *
1614
     * This service is shared.
1615
     * This method always returns the same instance of the service.
1616
     *
1617
     * @return \Hautelook\AliceBundle\Resolver\SimpleBundleResolver A Hautelook\AliceBundle\Resolver\SimpleBundleResolver instance
1618
     */
1619
    protected function getHautelookAlice_BundleResolverService()
1620
    {
1621
        return $this->services['hautelook_alice.bundle_resolver'] = new \Hautelook\AliceBundle\Resolver\SimpleBundleResolver();
1622
    }
1623
1624
    /**
1625
     * Gets the 'hautelook_alice.doctrine.command.deprecated_load_command' service.
1626
     *
1627
     * This service is shared.
1628
     * This method always returns the same instance of the service.
1629
     *
1630
     * @param bool    $lazyLoad whether to try lazy-loading the service with a proxy
1631
     *
1632
     * @return \Hautelook\AliceBundle\Doctrine\Command\DoctrineOrmLoadDataFixturesCommand A Hautelook\AliceBundle\Doctrine\Command\DoctrineOrmLoadDataFixturesCommand instance
1633
     */
1634
    protected function getHautelookAlice_Doctrine_Command_DeprecatedLoadCommandService($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...
1635
    {
1636
        return $this->services['hautelook_alice.doctrine.command.deprecated_load_command'] = $this->get('hautelook_alice.doctrine.command_factory')->createCommand('hautelook_alice:fixtures:load', $this->get('doctrine'), $this->get('hautelook_alice.fixtures.loader'), $this->get('hautelook_alice.alice.fixtures.loader'), $this->get('hautelook_alice.doctrine.orm.fixtures_finder'), $this->get('hautelook_alice.bundle_resolver'), $this->get('hautelook_alice.doctrine.orm.loader_generator'), $this->get('hautelook_alice.doctrine.executor.fixtures_executor'));
1637
    }
1638
1639
    /**
1640
     * Gets the 'hautelook_alice.doctrine.command.load_command' service.
1641
     *
1642
     * This service is shared.
1643
     * This method always returns the same instance of the service.
1644
     *
1645
     * @param bool    $lazyLoad whether to try lazy-loading the service with a proxy
1646
     *
1647
     * @return \Hautelook\AliceBundle\Doctrine\Command\DoctrineOrmLoadDataFixturesCommand A Hautelook\AliceBundle\Doctrine\Command\DoctrineOrmLoadDataFixturesCommand instance
1648
     */
1649
    protected function getHautelookAlice_Doctrine_Command_LoadCommandService($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...
1650
    {
1651
        return $this->services['hautelook_alice.doctrine.command.load_command'] = $this->get('hautelook_alice.doctrine.command_factory')->createCommand('hautelook_alice:doctrine:fixtures:load', $this->get('doctrine'), $this->get('hautelook_alice.fixtures.loader'), $this->get('hautelook_alice.alice.fixtures.loader'), $this->get('hautelook_alice.doctrine.orm.fixtures_finder'), $this->get('hautelook_alice.bundle_resolver'), $this->get('hautelook_alice.doctrine.orm.loader_generator'), $this->get('hautelook_alice.doctrine.executor.fixtures_executor'));
1652
    }
1653
1654
    /**
1655
     * Gets the 'hautelook_alice.doctrine.command_factory' service.
1656
     *
1657
     * This service is shared.
1658
     * This method always returns the same instance of the service.
1659
     *
1660
     * @param bool    $lazyLoad whether to try lazy-loading the service with a proxy
1661
     *
1662
     * @return \Hautelook\AliceBundle\Doctrine\Command\CommandFactory A Hautelook\AliceBundle\Doctrine\Command\CommandFactory instance
1663
     */
1664
    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...
1665
    {
1666
        return $this->services['hautelook_alice.doctrine.command_factory'] = new \Hautelook\AliceBundle\Doctrine\Command\CommandFactory();
1667
    }
1668
1669
    /**
1670
     * Gets the 'hautelook_alice.doctrine.executor.fixtures_executor' service.
1671
     *
1672
     * This service is shared.
1673
     * This method always returns the same instance of the service.
1674
     *
1675
     * @param bool    $lazyLoad whether to try lazy-loading the service with a proxy
1676
     *
1677
     * @return \Hautelook\AliceBundle\Doctrine\DataFixtures\Executor\FixturesExecutor A Hautelook\AliceBundle\Doctrine\DataFixtures\Executor\FixturesExecutor instance
1678
     */
1679
    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...
1680
    {
1681
        return $this->services['hautelook_alice.doctrine.executor.fixtures_executor'] = new \Hautelook\AliceBundle\Doctrine\DataFixtures\Executor\FixturesExecutor();
1682
    }
1683
1684
    /**
1685
     * Gets the 'hautelook_alice.doctrine.orm.fixtures_finder' service.
1686
     *
1687
     * This service is shared.
1688
     * This method always returns the same instance of the service.
1689
     *
1690
     * @return \Hautelook\AliceBundle\Doctrine\Finder\FixturesFinder A Hautelook\AliceBundle\Doctrine\Finder\FixturesFinder instance
1691
     */
1692
    protected function getHautelookAlice_Doctrine_Orm_FixturesFinderService()
1693
    {
1694
        $this->services['hautelook_alice.doctrine.orm.fixtures_finder'] = $instance = new \Hautelook\AliceBundle\Doctrine\Finder\FixturesFinder('DataFixtures/ORM');
1695
1696
        $instance->setContainer($this);
1697
1698
        return $instance;
1699
    }
1700
1701
    /**
1702
     * Gets the 'hautelook_alice.doctrine.orm.loader_generator' service.
1703
     *
1704
     * This service is shared.
1705
     * This method always returns the same instance of the service.
1706
     *
1707
     * @return \Hautelook\AliceBundle\Doctrine\Generator\LoaderGenerator A Hautelook\AliceBundle\Doctrine\Generator\LoaderGenerator instance
1708
     */
1709
    protected function getHautelookAlice_Doctrine_Orm_LoaderGeneratorService()
1710
    {
1711
        return $this->services['hautelook_alice.doctrine.orm.loader_generator'] = new \Hautelook\AliceBundle\Doctrine\Generator\LoaderGenerator($this->get('hautelook_alice.doctrine.orm.fixtures_finder'));
1712
    }
1713
1714
    /**
1715
     * Gets the 'hautelook_alice.faker' service.
1716
     *
1717
     * This service is shared.
1718
     * This method always returns the same instance of the service.
1719
     *
1720
     * @param bool    $lazyLoad whether to try lazy-loading the service with a proxy
1721
     *
1722
     * @return \Faker\Generator A Faker\Generator instance
1723
     */
1724 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...
1725
    {
1726
        $this->services['hautelook_alice.faker'] = $instance = \Faker\Factory::create('en_US');
1727
1728
        $instance->seed(1);
1729
        $instance->addProvider($this->get('faker.provider.foo'));
1730
1731
        return $instance;
1732
    }
1733
1734
    /**
1735
     * Gets the 'hautelook_alice.faker.provider_chain' service.
1736
     *
1737
     * This service is shared.
1738
     * This method always returns the same instance of the service.
1739
     *
1740
     * @param bool    $lazyLoad whether to try lazy-loading the service with a proxy
1741
     *
1742
     * @return \Hautelook\AliceBundle\Faker\Provider\ProviderChain A Hautelook\AliceBundle\Faker\Provider\ProviderChain instance
1743
     */
1744
    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...
1745
    {
1746
        return $this->services['hautelook_alice.faker.provider_chain'] = new \Hautelook\AliceBundle\Faker\Provider\ProviderChain(array(0 => $this->get('faker.provider.foo')));
1747
    }
1748
1749
    /**
1750
     * Gets the 'hautelook_alice.fixtures.loader' service.
1751
     *
1752
     * This service is shared.
1753
     * This method always returns the same instance of the service.
1754
     *
1755
     * @return \Hautelook\AliceBundle\Alice\DataFixtures\Loader\SimpleLoader A Hautelook\AliceBundle\Alice\DataFixtures\SimpleLoader\SimpleLoader instance
1756
     */
1757
    protected function getHautelookAlice_Fixtures_LoaderService()
1758
    {
1759
        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);
1760
    }
1761
1762
    /**
1763
     * Gets the 'http_kernel' service.
1764
     *
1765
     * This service is shared.
1766
     * This method always returns the same instance of the service.
1767
     *
1768
     * @return \Symfony\Component\HttpKernel\HttpKernel A Symfony\Component\HttpKernel\HttpKernel instance
1769
     */
1770
    protected function getHttpKernelService()
1771
    {
1772
        return $this->services['http_kernel'] = new \Symfony\Component\HttpKernel\HttpKernel($this->get('debug.event_dispatcher'), $this->get('debug.controller_resolver'), $this->get('request_stack'), $this->get('debug.argument_resolver'));
1773
    }
1774
1775
    /**
1776
     * Gets the 'kernel' service.
1777
     *
1778
     * This service is shared.
1779
     * This method always returns the same instance of the service.
1780
     *
1781
     * @throws RuntimeException always since this service is expected to be injected dynamically
1782
     */
1783
    protected function getKernelService()
1784
    {
1785
        throw new RuntimeException('You have requested a synthetic service ("kernel"). The DIC does not know how to construct this service.');
1786
    }
1787
1788
    /**
1789
     * Gets the 'kernel.class_cache.cache_warmer' service.
1790
     *
1791
     * This service is shared.
1792
     * This method always returns the same instance of the service.
1793
     *
1794
     * @return \Symfony\Bundle\FrameworkBundle\CacheWarmer\ClassCacheCacheWarmer A Symfony\Bundle\FrameworkBundle\CacheWarmer\ClassCacheCacheWarmer instance
1795
     */
1796
    protected function getKernel_ClassCache_CacheWarmerService()
1797
    {
1798
        return $this->services['kernel.class_cache.cache_warmer'] = new \Symfony\Bundle\FrameworkBundle\CacheWarmer\ClassCacheCacheWarmer();
1799
    }
1800
1801
    /**
1802
     * Gets the 'locale_listener' service.
1803
     *
1804
     * This service is shared.
1805
     * This method always returns the same instance of the service.
1806
     *
1807
     * @return \Symfony\Component\HttpKernel\EventListener\LocaleListener A Symfony\Component\HttpKernel\EventListener\LocaleListener instance
1808
     */
1809
    protected function getLocaleListenerService()
1810
    {
1811
        return $this->services['locale_listener'] = new \Symfony\Component\HttpKernel\EventListener\LocaleListener($this->get('request_stack'), 'en', $this->get('router', ContainerInterface::NULL_ON_INVALID_REFERENCE));
1812
    }
1813
1814
    /**
1815
     * Gets the 'property_accessor' service.
1816
     *
1817
     * This service is shared.
1818
     * This method always returns the same instance of the service.
1819
     *
1820
     * @return \Symfony\Component\PropertyAccess\PropertyAccessor A Symfony\Component\PropertyAccess\PropertyAccessor instance
1821
     */
1822
    protected function getPropertyAccessorService()
1823
    {
1824
        return $this->services['property_accessor'] = new \Symfony\Component\PropertyAccess\PropertyAccessor(false, false);
1825
    }
1826
1827
    /**
1828
     * Gets the 'request_stack' service.
1829
     *
1830
     * This service is shared.
1831
     * This method always returns the same instance of the service.
1832
     *
1833
     * @return \Symfony\Component\HttpFoundation\RequestStack A Symfony\Component\HttpFoundation\RequestStack instance
1834
     */
1835
    protected function getRequestStackService()
1836
    {
1837
        return $this->services['request_stack'] = new \Symfony\Component\HttpFoundation\RequestStack();
1838
    }
1839
1840
    /**
1841
     * Gets the 'response_listener' service.
1842
     *
1843
     * This service is shared.
1844
     * This method always returns the same instance of the service.
1845
     *
1846
     * @return \Symfony\Component\HttpKernel\EventListener\ResponseListener A Symfony\Component\HttpKernel\EventListener\ResponseListener instance
1847
     */
1848
    protected function getResponseListenerService()
1849
    {
1850
        return $this->services['response_listener'] = new \Symfony\Component\HttpKernel\EventListener\ResponseListener('UTF-8');
1851
    }
1852
1853
    /**
1854
     * Gets the 'router' service.
1855
     *
1856
     * This service is shared.
1857
     * This method always returns the same instance of the service.
1858
     *
1859
     * @return \Symfony\Bundle\FrameworkBundle\Routing\Router A Symfony\Bundle\FrameworkBundle\Routing\Router instance
1860
     */
1861 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...
1862
    {
1863
        $this->services['router'] = $instance = new \Symfony\Bundle\FrameworkBundle\Routing\Router($this, ($this->targetDirs[2].'/config/routing.yml'), array('cache_dir' => __DIR__, 'debug' => true, 'generator_class' => 'Symfony\\Component\\Routing\\Generator\\UrlGenerator', 'generator_base_class' => 'Symfony\\Component\\Routing\\Generator\\UrlGenerator', 'generator_dumper_class' => 'Symfony\\Component\\Routing\\Generator\\Dumper\\PhpGeneratorDumper', 'generator_cache_class' => '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...
1864
1865
        $instance->setConfigCacheFactory($this->get('config_cache_factory'));
1866
1867
        return $instance;
1868
    }
1869
1870
    /**
1871
     * Gets the 'router_listener' service.
1872
     *
1873
     * This service is shared.
1874
     * This method always returns the same instance of the service.
1875
     *
1876
     * @return \Symfony\Component\HttpKernel\EventListener\RouterListener A Symfony\Component\HttpKernel\EventListener\RouterListener instance
1877
     */
1878
    protected function getRouterListenerService()
1879
    {
1880
        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);
1881
    }
1882
1883
    /**
1884
     * Gets the 'routing.loader' service.
1885
     *
1886
     * This service is shared.
1887
     * This method always returns the same instance of the service.
1888
     *
1889
     * @return \Symfony\Bundle\FrameworkBundle\Routing\DelegatingLoader A Symfony\Bundle\FrameworkBundle\Routing\DelegatingLoader instance
1890
     */
1891 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...
1892
    {
1893
        $a = $this->get('file_locator');
1894
1895
        $b = new \Symfony\Component\Config\Loader\LoaderResolver();
1896
        $b->addLoader(new \Symfony\Component\Routing\Loader\XmlFileLoader($a));
1897
        $b->addLoader(new \Symfony\Component\Routing\Loader\YamlFileLoader($a));
1898
        $b->addLoader(new \Symfony\Component\Routing\Loader\PhpFileLoader($a));
1899
        $b->addLoader(new \Symfony\Component\Routing\Loader\DirectoryLoader($a));
1900
        $b->addLoader(new \Symfony\Component\Routing\Loader\DependencyInjection\ServiceRouterLoader($this));
1901
1902
        return $this->services['routing.loader'] = new \Symfony\Bundle\FrameworkBundle\Routing\DelegatingLoader($this->get('controller_name_converter'), $b);
1903
    }
1904
1905
    /**
1906
     * Gets the 'service_container' service.
1907
     *
1908
     * This service is shared.
1909
     * This method always returns the same instance of the service.
1910
     *
1911
     * @throws RuntimeException always since this service is expected to be injected dynamically
1912
     */
1913
    protected function getServiceContainerService()
1914
    {
1915
        throw new RuntimeException('You have requested a synthetic service ("service_container"). The DIC does not know how to construct this service.');
1916
    }
1917
1918
    /**
1919
     * Gets the 'session' service.
1920
     *
1921
     * This service is shared.
1922
     * This method always returns the same instance of the service.
1923
     *
1924
     * @return \Symfony\Component\HttpFoundation\Session\Session A Symfony\Component\HttpFoundation\Session\Session instance
1925
     */
1926
    protected function getSessionService()
1927
    {
1928
        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());
1929
    }
1930
1931
    /**
1932
     * Gets the 'session.handler' service.
1933
     *
1934
     * This service is shared.
1935
     * This method always returns the same instance of the service.
1936
     *
1937
     * @return \Symfony\Component\HttpFoundation\Session\Storage\Handler\NativeFileSessionHandler A Symfony\Component\HttpFoundation\Session\Storage\Handler\NativeFileSessionHandler instance
1938
     */
1939
    protected function getSession_HandlerService()
1940
    {
1941
        return $this->services['session.handler'] = new \Symfony\Component\HttpFoundation\Session\Storage\Handler\NativeFileSessionHandler((__DIR__.'/sessions'));
1942
    }
1943
1944
    /**
1945
     * Gets the 'session.save_listener' service.
1946
     *
1947
     * This service is shared.
1948
     * This method always returns the same instance of the service.
1949
     *
1950
     * @return \Symfony\Component\HttpKernel\EventListener\SaveSessionListener A Symfony\Component\HttpKernel\EventListener\SaveSessionListener instance
1951
     */
1952
    protected function getSession_SaveListenerService()
1953
    {
1954
        return $this->services['session.save_listener'] = new \Symfony\Component\HttpKernel\EventListener\SaveSessionListener();
1955
    }
1956
1957
    /**
1958
     * Gets the 'session.storage.filesystem' service.
1959
     *
1960
     * This service is shared.
1961
     * This method always returns the same instance of the service.
1962
     *
1963
     * @return \Symfony\Component\HttpFoundation\Session\Storage\MockFileSessionStorage A Symfony\Component\HttpFoundation\Session\Storage\MockFileSessionStorage instance
1964
     */
1965
    protected function getSession_Storage_FilesystemService()
1966
    {
1967
        return $this->services['session.storage.filesystem'] = new \Symfony\Component\HttpFoundation\Session\Storage\MockFileSessionStorage((__DIR__.'/sessions'), 'MOCKSESSID', $this->get('session.storage.metadata_bag'));
1968
    }
1969
1970
    /**
1971
     * Gets the 'session.storage.native' service.
1972
     *
1973
     * This service is shared.
1974
     * This method always returns the same instance of the service.
1975
     *
1976
     * @return \Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage A Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage instance
1977
     */
1978
    protected function getSession_Storage_NativeService()
1979
    {
1980
        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'));
1981
    }
1982
1983
    /**
1984
     * Gets the 'session.storage.php_bridge' service.
1985
     *
1986
     * This service is shared.
1987
     * This method always returns the same instance of the service.
1988
     *
1989
     * @return \Symfony\Component\HttpFoundation\Session\Storage\PhpBridgeSessionStorage A Symfony\Component\HttpFoundation\Session\Storage\PhpBridgeSessionStorage instance
1990
     */
1991
    protected function getSession_Storage_PhpBridgeService()
1992
    {
1993
        return $this->services['session.storage.php_bridge'] = new \Symfony\Component\HttpFoundation\Session\Storage\PhpBridgeSessionStorage($this->get('session.handler'), $this->get('session.storage.metadata_bag'));
1994
    }
1995
1996
    /**
1997
     * Gets the 'session_listener' service.
1998
     *
1999
     * This service is shared.
2000
     * This method always returns the same instance of the service.
2001
     *
2002
     * @return \Symfony\Bundle\FrameworkBundle\EventListener\SessionListener A Symfony\Bundle\FrameworkBundle\EventListener\SessionListener instance
2003
     */
2004
    protected function getSessionListenerService()
2005
    {
2006
        return $this->services['session_listener'] = new \Symfony\Bundle\FrameworkBundle\EventListener\SessionListener($this);
2007
    }
2008
2009
    /**
2010
     * Gets the 'streamed_response_listener' service.
2011
     *
2012
     * This service is shared.
2013
     * This method always returns the same instance of the service.
2014
     *
2015
     * @return \Symfony\Component\HttpKernel\EventListener\StreamedResponseListener A Symfony\Component\HttpKernel\EventListener\StreamedResponseListener instance
2016
     */
2017
    protected function getStreamedResponseListenerService()
2018
    {
2019
        return $this->services['streamed_response_listener'] = new \Symfony\Component\HttpKernel\EventListener\StreamedResponseListener();
2020
    }
2021
2022
    /**
2023
     * Gets the 'test.client' service.
2024
     *
2025
     * @return \Symfony\Bundle\FrameworkBundle\Client A Symfony\Bundle\FrameworkBundle\Client instance
2026
     */
2027
    protected function getTest_ClientService()
2028
    {
2029
        return new \Symfony\Bundle\FrameworkBundle\Client($this->get('kernel'), array(), new \Symfony\Component\BrowserKit\History(), new \Symfony\Component\BrowserKit\CookieJar());
2030
    }
2031
2032
    /**
2033
     * Gets the 'test.client.cookiejar' service.
2034
     *
2035
     * @return \Symfony\Component\BrowserKit\CookieJar A Symfony\Component\BrowserKit\CookieJar instance
2036
     */
2037
    protected function getTest_Client_CookiejarService()
2038
    {
2039
        return new \Symfony\Component\BrowserKit\CookieJar();
2040
    }
2041
2042
    /**
2043
     * Gets the 'test.client.history' service.
2044
     *
2045
     * @return \Symfony\Component\BrowserKit\History A Symfony\Component\BrowserKit\History instance
2046
     */
2047
    protected function getTest_Client_HistoryService()
2048
    {
2049
        return new \Symfony\Component\BrowserKit\History();
2050
    }
2051
2052
    /**
2053
     * Gets the 'test.session.listener' service.
2054
     *
2055
     * This service is shared.
2056
     * This method always returns the same instance of the service.
2057
     *
2058
     * @return \Symfony\Bundle\FrameworkBundle\EventListener\TestSessionListener A Symfony\Bundle\FrameworkBundle\EventListener\TestSessionListener instance
2059
     */
2060
    protected function getTest_Session_ListenerService()
2061
    {
2062
        return $this->services['test.session.listener'] = new \Symfony\Bundle\FrameworkBundle\EventListener\TestSessionListener($this);
2063
    }
2064
2065
    /**
2066
     * Gets the 'translation.dumper.csv' service.
2067
     *
2068
     * This service is shared.
2069
     * This method always returns the same instance of the service.
2070
     *
2071
     * @return \Symfony\Component\Translation\Dumper\CsvFileDumper A Symfony\Component\Translation\Dumper\CsvFileDumper instance
2072
     */
2073
    protected function getTranslation_Dumper_CsvService()
2074
    {
2075
        return $this->services['translation.dumper.csv'] = new \Symfony\Component\Translation\Dumper\CsvFileDumper();
2076
    }
2077
2078
    /**
2079
     * Gets the 'translation.dumper.ini' service.
2080
     *
2081
     * This service is shared.
2082
     * This method always returns the same instance of the service.
2083
     *
2084
     * @return \Symfony\Component\Translation\Dumper\IniFileDumper A Symfony\Component\Translation\Dumper\IniFileDumper instance
2085
     */
2086
    protected function getTranslation_Dumper_IniService()
2087
    {
2088
        return $this->services['translation.dumper.ini'] = new \Symfony\Component\Translation\Dumper\IniFileDumper();
2089
    }
2090
2091
    /**
2092
     * Gets the 'translation.dumper.json' service.
2093
     *
2094
     * This service is shared.
2095
     * This method always returns the same instance of the service.
2096
     *
2097
     * @return \Symfony\Component\Translation\Dumper\JsonFileDumper A Symfony\Component\Translation\Dumper\JsonFileDumper instance
2098
     */
2099
    protected function getTranslation_Dumper_JsonService()
2100
    {
2101
        return $this->services['translation.dumper.json'] = new \Symfony\Component\Translation\Dumper\JsonFileDumper();
2102
    }
2103
2104
    /**
2105
     * Gets the 'translation.dumper.mo' service.
2106
     *
2107
     * This service is shared.
2108
     * This method always returns the same instance of the service.
2109
     *
2110
     * @return \Symfony\Component\Translation\Dumper\MoFileDumper A Symfony\Component\Translation\Dumper\MoFileDumper instance
2111
     */
2112
    protected function getTranslation_Dumper_MoService()
2113
    {
2114
        return $this->services['translation.dumper.mo'] = new \Symfony\Component\Translation\Dumper\MoFileDumper();
2115
    }
2116
2117
    /**
2118
     * Gets the 'translation.dumper.php' service.
2119
     *
2120
     * This service is shared.
2121
     * This method always returns the same instance of the service.
2122
     *
2123
     * @return \Symfony\Component\Translation\Dumper\PhpFileDumper A Symfony\Component\Translation\Dumper\PhpFileDumper instance
2124
     */
2125
    protected function getTranslation_Dumper_PhpService()
2126
    {
2127
        return $this->services['translation.dumper.php'] = new \Symfony\Component\Translation\Dumper\PhpFileDumper();
2128
    }
2129
2130
    /**
2131
     * Gets the 'translation.dumper.po' service.
2132
     *
2133
     * This service is shared.
2134
     * This method always returns the same instance of the service.
2135
     *
2136
     * @return \Symfony\Component\Translation\Dumper\PoFileDumper A Symfony\Component\Translation\Dumper\PoFileDumper instance
2137
     */
2138
    protected function getTranslation_Dumper_PoService()
2139
    {
2140
        return $this->services['translation.dumper.po'] = new \Symfony\Component\Translation\Dumper\PoFileDumper();
2141
    }
2142
2143
    /**
2144
     * Gets the 'translation.dumper.qt' service.
2145
     *
2146
     * This service is shared.
2147
     * This method always returns the same instance of the service.
2148
     *
2149
     * @return \Symfony\Component\Translation\Dumper\QtFileDumper A Symfony\Component\Translation\Dumper\QtFileDumper instance
2150
     */
2151
    protected function getTranslation_Dumper_QtService()
2152
    {
2153
        return $this->services['translation.dumper.qt'] = new \Symfony\Component\Translation\Dumper\QtFileDumper();
2154
    }
2155
2156
    /**
2157
     * Gets the 'translation.dumper.res' service.
2158
     *
2159
     * This service is shared.
2160
     * This method always returns the same instance of the service.
2161
     *
2162
     * @return \Symfony\Component\Translation\Dumper\IcuResFileDumper A Symfony\Component\Translation\Dumper\IcuResFileDumper instance
2163
     */
2164
    protected function getTranslation_Dumper_ResService()
2165
    {
2166
        return $this->services['translation.dumper.res'] = new \Symfony\Component\Translation\Dumper\IcuResFileDumper();
2167
    }
2168
2169
    /**
2170
     * Gets the 'translation.dumper.xliff' service.
2171
     *
2172
     * This service is shared.
2173
     * This method always returns the same instance of the service.
2174
     *
2175
     * @return \Symfony\Component\Translation\Dumper\XliffFileDumper A Symfony\Component\Translation\Dumper\XliffFileDumper instance
2176
     */
2177
    protected function getTranslation_Dumper_XliffService()
2178
    {
2179
        return $this->services['translation.dumper.xliff'] = new \Symfony\Component\Translation\Dumper\XliffFileDumper();
2180
    }
2181
2182
    /**
2183
     * Gets the 'translation.dumper.yml' service.
2184
     *
2185
     * This service is shared.
2186
     * This method always returns the same instance of the service.
2187
     *
2188
     * @return \Symfony\Component\Translation\Dumper\YamlFileDumper A Symfony\Component\Translation\Dumper\YamlFileDumper instance
2189
     */
2190
    protected function getTranslation_Dumper_YmlService()
2191
    {
2192
        return $this->services['translation.dumper.yml'] = new \Symfony\Component\Translation\Dumper\YamlFileDumper();
2193
    }
2194
2195
    /**
2196
     * Gets the 'translation.extractor' service.
2197
     *
2198
     * This service is shared.
2199
     * This method always returns the same instance of the service.
2200
     *
2201
     * @return \Symfony\Component\Translation\Extractor\ChainExtractor A Symfony\Component\Translation\Extractor\ChainExtractor instance
2202
     */
2203 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...
2204
    {
2205
        $this->services['translation.extractor'] = $instance = new \Symfony\Component\Translation\Extractor\ChainExtractor();
2206
2207
        $instance->addExtractor('php', $this->get('translation.extractor.php'));
2208
2209
        return $instance;
2210
    }
2211
2212
    /**
2213
     * Gets the 'translation.extractor.php' service.
2214
     *
2215
     * This service is shared.
2216
     * This method always returns the same instance of the service.
2217
     *
2218
     * @return \Symfony\Bundle\FrameworkBundle\Translation\PhpExtractor A Symfony\Bundle\FrameworkBundle\Translation\PhpExtractor instance
2219
     */
2220
    protected function getTranslation_Extractor_PhpService()
2221
    {
2222
        return $this->services['translation.extractor.php'] = new \Symfony\Bundle\FrameworkBundle\Translation\PhpExtractor();
2223
    }
2224
2225
    /**
2226
     * Gets the 'translation.loader' service.
2227
     *
2228
     * This service is shared.
2229
     * This method always returns the same instance of the service.
2230
     *
2231
     * @return \Symfony\Bundle\FrameworkBundle\Translation\TranslationLoader A Symfony\Bundle\FrameworkBundle\Translation\TranslationLoader instance
2232
     */
2233 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...
2234
    {
2235
        $a = $this->get('translation.loader.xliff');
2236
2237
        $this->services['translation.loader'] = $instance = new \Symfony\Bundle\FrameworkBundle\Translation\TranslationLoader();
2238
2239
        $instance->addLoader('php', $this->get('translation.loader.php'));
2240
        $instance->addLoader('yml', $this->get('translation.loader.yml'));
2241
        $instance->addLoader('xlf', $a);
2242
        $instance->addLoader('xliff', $a);
2243
        $instance->addLoader('po', $this->get('translation.loader.po'));
2244
        $instance->addLoader('mo', $this->get('translation.loader.mo'));
2245
        $instance->addLoader('ts', $this->get('translation.loader.qt'));
2246
        $instance->addLoader('csv', $this->get('translation.loader.csv'));
2247
        $instance->addLoader('res', $this->get('translation.loader.res'));
2248
        $instance->addLoader('dat', $this->get('translation.loader.dat'));
2249
        $instance->addLoader('ini', $this->get('translation.loader.ini'));
2250
        $instance->addLoader('json', $this->get('translation.loader.json'));
2251
2252
        return $instance;
2253
    }
2254
2255
    /**
2256
     * Gets the 'translation.loader.csv' service.
2257
     *
2258
     * This service is shared.
2259
     * This method always returns the same instance of the service.
2260
     *
2261
     * @return \Symfony\Component\Translation\Loader\CsvFileLoader A Symfony\Component\Translation\SimpleLoader\CsvFileLoader instance
2262
     */
2263
    protected function getTranslation_Loader_CsvService()
2264
    {
2265
        return $this->services['translation.loader.csv'] = new \Symfony\Component\Translation\Loader\CsvFileLoader();
2266
    }
2267
2268
    /**
2269
     * Gets the 'translation.loader.dat' service.
2270
     *
2271
     * This service is shared.
2272
     * This method always returns the same instance of the service.
2273
     *
2274
     * @return \Symfony\Component\Translation\Loader\IcuDatFileLoader A Symfony\Component\Translation\SimpleLoader\IcuDatFileLoader instance
2275
     */
2276
    protected function getTranslation_Loader_DatService()
2277
    {
2278
        return $this->services['translation.loader.dat'] = new \Symfony\Component\Translation\Loader\IcuDatFileLoader();
2279
    }
2280
2281
    /**
2282
     * Gets the 'translation.loader.ini' service.
2283
     *
2284
     * This service is shared.
2285
     * This method always returns the same instance of the service.
2286
     *
2287
     * @return \Symfony\Component\Translation\Loader\IniFileLoader A Symfony\Component\Translation\SimpleLoader\IniFileLoader instance
2288
     */
2289
    protected function getTranslation_Loader_IniService()
2290
    {
2291
        return $this->services['translation.loader.ini'] = new \Symfony\Component\Translation\Loader\IniFileLoader();
2292
    }
2293
2294
    /**
2295
     * Gets the 'translation.loader.json' service.
2296
     *
2297
     * This service is shared.
2298
     * This method always returns the same instance of the service.
2299
     *
2300
     * @return \Symfony\Component\Translation\Loader\JsonFileLoader A Symfony\Component\Translation\SimpleLoader\JsonFileLoader instance
2301
     */
2302
    protected function getTranslation_Loader_JsonService()
2303
    {
2304
        return $this->services['translation.loader.json'] = new \Symfony\Component\Translation\Loader\JsonFileLoader();
2305
    }
2306
2307
    /**
2308
     * Gets the 'translation.loader.mo' service.
2309
     *
2310
     * This service is shared.
2311
     * This method always returns the same instance of the service.
2312
     *
2313
     * @return \Symfony\Component\Translation\Loader\MoFileLoader A Symfony\Component\Translation\SimpleLoader\MoFileLoader instance
2314
     */
2315
    protected function getTranslation_Loader_MoService()
2316
    {
2317
        return $this->services['translation.loader.mo'] = new \Symfony\Component\Translation\Loader\MoFileLoader();
2318
    }
2319
2320
    /**
2321
     * Gets the 'translation.loader.php' service.
2322
     *
2323
     * This service is shared.
2324
     * This method always returns the same instance of the service.
2325
     *
2326
     * @return \Symfony\Component\Translation\Loader\PhpFileLoader A Symfony\Component\Translation\SimpleLoader\PhpFileLoader instance
2327
     */
2328
    protected function getTranslation_Loader_PhpService()
2329
    {
2330
        return $this->services['translation.loader.php'] = new \Symfony\Component\Translation\Loader\PhpFileLoader();
2331
    }
2332
2333
    /**
2334
     * Gets the 'translation.loader.po' service.
2335
     *
2336
     * This service is shared.
2337
     * This method always returns the same instance of the service.
2338
     *
2339
     * @return \Symfony\Component\Translation\Loader\PoFileLoader A Symfony\Component\Translation\SimpleLoader\PoFileLoader instance
2340
     */
2341
    protected function getTranslation_Loader_PoService()
2342
    {
2343
        return $this->services['translation.loader.po'] = new \Symfony\Component\Translation\Loader\PoFileLoader();
2344
    }
2345
2346
    /**
2347
     * Gets the 'translation.loader.qt' service.
2348
     *
2349
     * This service is shared.
2350
     * This method always returns the same instance of the service.
2351
     *
2352
     * @return \Symfony\Component\Translation\Loader\QtFileLoader A Symfony\Component\Translation\SimpleLoader\QtFileLoader instance
2353
     */
2354
    protected function getTranslation_Loader_QtService()
2355
    {
2356
        return $this->services['translation.loader.qt'] = new \Symfony\Component\Translation\Loader\QtFileLoader();
2357
    }
2358
2359
    /**
2360
     * Gets the 'translation.loader.res' service.
2361
     *
2362
     * This service is shared.
2363
     * This method always returns the same instance of the service.
2364
     *
2365
     * @return \Symfony\Component\Translation\Loader\IcuResFileLoader A Symfony\Component\Translation\SimpleLoader\IcuResFileLoader instance
2366
     */
2367
    protected function getTranslation_Loader_ResService()
2368
    {
2369
        return $this->services['translation.loader.res'] = new \Symfony\Component\Translation\Loader\IcuResFileLoader();
2370
    }
2371
2372
    /**
2373
     * Gets the 'translation.loader.xliff' service.
2374
     *
2375
     * This service is shared.
2376
     * This method always returns the same instance of the service.
2377
     *
2378
     * @return \Symfony\Component\Translation\Loader\XliffFileLoader A Symfony\Component\Translation\SimpleLoader\XliffFileLoader instance
2379
     */
2380
    protected function getTranslation_Loader_XliffService()
2381
    {
2382
        return $this->services['translation.loader.xliff'] = new \Symfony\Component\Translation\Loader\XliffFileLoader();
2383
    }
2384
2385
    /**
2386
     * Gets the 'translation.loader.yml' service.
2387
     *
2388
     * This service is shared.
2389
     * This method always returns the same instance of the service.
2390
     *
2391
     * @return \Symfony\Component\Translation\Loader\YamlFileLoader A Symfony\Component\Translation\SimpleLoader\YamlFileLoader instance
2392
     */
2393
    protected function getTranslation_Loader_YmlService()
2394
    {
2395
        return $this->services['translation.loader.yml'] = new \Symfony\Component\Translation\Loader\YamlFileLoader();
2396
    }
2397
2398
    /**
2399
     * Gets the 'translation.writer' service.
2400
     *
2401
     * This service is shared.
2402
     * This method always returns the same instance of the service.
2403
     *
2404
     * @return \Symfony\Component\Translation\Writer\TranslationWriter A Symfony\Component\Translation\Writer\TranslationWriter instance
2405
     */
2406 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...
2407
    {
2408
        $this->services['translation.writer'] = $instance = new \Symfony\Component\Translation\Writer\TranslationWriter();
2409
2410
        $instance->addDumper('php', $this->get('translation.dumper.php'));
2411
        $instance->addDumper('xlf', $this->get('translation.dumper.xliff'));
2412
        $instance->addDumper('po', $this->get('translation.dumper.po'));
2413
        $instance->addDumper('mo', $this->get('translation.dumper.mo'));
2414
        $instance->addDumper('yml', $this->get('translation.dumper.yml'));
2415
        $instance->addDumper('ts', $this->get('translation.dumper.qt'));
2416
        $instance->addDumper('csv', $this->get('translation.dumper.csv'));
2417
        $instance->addDumper('ini', $this->get('translation.dumper.ini'));
2418
        $instance->addDumper('json', $this->get('translation.dumper.json'));
2419
        $instance->addDumper('res', $this->get('translation.dumper.res'));
2420
2421
        return $instance;
2422
    }
2423
2424
    /**
2425
     * Gets the 'translator' service.
2426
     *
2427
     * This service is shared.
2428
     * This method always returns the same instance of the service.
2429
     *
2430
     * @return \Symfony\Component\Translation\IdentityTranslator A Symfony\Component\Translation\IdentityTranslator instance
2431
     */
2432
    protected function getTranslatorService()
2433
    {
2434
        return $this->services['translator'] = new \Symfony\Component\Translation\IdentityTranslator($this->get('translator.selector'));
2435
    }
2436
2437
    /**
2438
     * Gets the 'translator.default' service.
2439
     *
2440
     * This service is shared.
2441
     * This method always returns the same instance of the service.
2442
     *
2443
     * @return \Symfony\Bundle\FrameworkBundle\Translation\Translator A Symfony\Bundle\FrameworkBundle\Translation\Translator instance
2444
     */
2445 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...
2446
    {
2447
        $this->services['translator.default'] = $instance = new \Symfony\Bundle\FrameworkBundle\Translation\Translator($this, $this->get('translator.selector'), array('translation.loader.php' => array(0 => 'php'), 'translation.loader.yml' => array(0 => 'yml'), 'translation.loader.xliff' => array(0 => 'xlf', 1 => 'xliff'), 'translation.loader.po' => array(0 => 'po'), 'translation.loader.mo' => array(0 => 'mo'), 'translation.loader.qt' => array(0 => 'ts'), 'translation.loader.csv' => array(0 => 'csv'), 'translation.loader.res' => array(0 => 'res'), 'translation.loader.dat' => array(0 => 'dat'), 'translation.loader.ini' => array(0 => 'ini'), 'translation.loader.json' => array(0 => 'json')), array('cache_dir' => (__DIR__.'/translations'), 'debug' => true), array());
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...
2448
2449
        $instance->setConfigCacheFactory($this->get('config_cache_factory'));
2450
2451
        return $instance;
2452
    }
2453
2454
    /**
2455
     * Gets the 'translator_listener' service.
2456
     *
2457
     * This service is shared.
2458
     * This method always returns the same instance of the service.
2459
     *
2460
     * @return \Symfony\Component\HttpKernel\EventListener\TranslatorListener A Symfony\Component\HttpKernel\EventListener\TranslatorListener instance
2461
     */
2462
    protected function getTranslatorListenerService()
2463
    {
2464
        return $this->services['translator_listener'] = new \Symfony\Component\HttpKernel\EventListener\TranslatorListener($this->get('translator'), $this->get('request_stack'));
2465
    }
2466
2467
    /**
2468
     * Gets the 'uri_signer' service.
2469
     *
2470
     * This service is shared.
2471
     * This method always returns the same instance of the service.
2472
     *
2473
     * @return \Symfony\Component\HttpKernel\UriSigner A Symfony\Component\HttpKernel\UriSigner instance
2474
     */
2475
    protected function getUriSignerService()
2476
    {
2477
        return $this->services['uri_signer'] = new \Symfony\Component\HttpKernel\UriSigner('test');
2478
    }
2479
2480
    /**
2481
     * Gets the 'validate_request_listener' service.
2482
     *
2483
     * This service is shared.
2484
     * This method always returns the same instance of the service.
2485
     *
2486
     * @return \Symfony\Component\HttpKernel\EventListener\ValidateRequestListener A Symfony\Component\HttpKernel\EventListener\ValidateRequestListener instance
2487
     */
2488
    protected function getValidateRequestListenerService()
2489
    {
2490
        return $this->services['validate_request_listener'] = new \Symfony\Component\HttpKernel\EventListener\ValidateRequestListener();
2491
    }
2492
2493
    /**
2494
     * Gets the 'validator' service.
2495
     *
2496
     * This service is shared.
2497
     * This method always returns the same instance of the service.
2498
     *
2499
     * @return \Symfony\Component\Validator\Validator\ValidatorInterface A Symfony\Component\Validator\Validator\ValidatorInterface instance
2500
     */
2501
    protected function getValidatorService()
2502
    {
2503
        return $this->services['validator'] = $this->get('validator.builder')->getValidator();
2504
    }
2505
2506
    /**
2507
     * Gets the 'validator.builder' service.
2508
     *
2509
     * This service is shared.
2510
     * This method always returns the same instance of the service.
2511
     *
2512
     * @return \Symfony\Component\Validator\ValidatorBuilderInterface A Symfony\Component\Validator\ValidatorBuilderInterface instance
2513
     */
2514
    protected function getValidator_BuilderService()
2515
    {
2516
        $this->services['validator.builder'] = $instance = \Symfony\Component\Validator\Validation::createValidatorBuilder();
2517
2518
        $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', 'doctrine.orm.validator.unique' => 'doctrine.orm.validator.unique', 'Symfony\\Bridge\\Doctrine\\Validator\\Constraints\\UniqueEntityValidator' => 'doctrine.orm.validator.unique')));
2519
        $instance->setTranslator($this->get('translator'));
2520
        $instance->setTranslationDomain('validators');
2521
        $instance->enableAnnotationMapping($this->get('annotation_reader'));
2522
        $instance->addMethodMapping('loadValidatorMetadata');
2523
        $instance->addObjectInitializers(array(0 => $this->get('doctrine.orm.validator_initializer')));
2524
2525
        return $instance;
2526
    }
2527
2528
    /**
2529
     * Gets the 'validator.email' service.
2530
     *
2531
     * This service is shared.
2532
     * This method always returns the same instance of the service.
2533
     *
2534
     * @return \Symfony\Component\Validator\Constraints\EmailValidator A Symfony\Component\Validator\Constraints\EmailValidator instance
2535
     */
2536
    protected function getValidator_EmailService()
2537
    {
2538
        return $this->services['validator.email'] = new \Symfony\Component\Validator\Constraints\EmailValidator(false);
2539
    }
2540
2541
    /**
2542
     * Gets the 'validator.expression' service.
2543
     *
2544
     * This service is shared.
2545
     * This method always returns the same instance of the service.
2546
     *
2547
     * @return \Symfony\Component\Validator\Constraints\ExpressionValidator A Symfony\Component\Validator\Constraints\ExpressionValidator instance
2548
     */
2549
    protected function getValidator_ExpressionService()
2550
    {
2551
        return $this->services['validator.expression'] = new \Symfony\Component\Validator\Constraints\ExpressionValidator();
2552
    }
2553
2554
    /**
2555
     * Gets the 'controller_name_converter' service.
2556
     *
2557
     * This service is shared.
2558
     * This method always returns the same instance of the service.
2559
     *
2560
     * This service is private.
2561
     * If you want to be able to request this service from the container directly,
2562
     * make it public, otherwise you might end up with broken code.
2563
     *
2564
     * @return \Symfony\Bundle\FrameworkBundle\Controller\ControllerNameParser A Symfony\Bundle\FrameworkBundle\Controller\ControllerNameParser instance
2565
     */
2566
    protected function getControllerNameConverterService()
2567
    {
2568
        return $this->services['controller_name_converter'] = new \Symfony\Bundle\FrameworkBundle\Controller\ControllerNameParser($this->get('kernel'));
2569
    }
2570
2571
    /**
2572
     * Gets the 'doctrine.dbal.logger' service.
2573
     *
2574
     * This service is shared.
2575
     * This method always returns the same instance of the service.
2576
     *
2577
     * This service is private.
2578
     * If you want to be able to request this service from the container directly,
2579
     * make it public, otherwise you might end up with broken code.
2580
     *
2581
     * @return \Symfony\Bridge\Doctrine\Logger\DbalLogger A Symfony\Bridge\Doctrine\Logger\DbalLogger instance
2582
     */
2583
    protected function getDoctrine_Dbal_LoggerService()
2584
    {
2585
        return $this->services['doctrine.dbal.logger'] = new \Symfony\Bridge\Doctrine\Logger\DbalLogger(NULL, $this->get('debug.stopwatch', ContainerInterface::NULL_ON_INVALID_REFERENCE));
2586
    }
2587
2588
    /**
2589
     * Gets the 'doctrine.orm.naming_strategy.default' service.
2590
     *
2591
     * This service is shared.
2592
     * This method always returns the same instance of the service.
2593
     *
2594
     * This service is private.
2595
     * If you want to be able to request this service from the container directly,
2596
     * make it public, otherwise you might end up with broken code.
2597
     *
2598
     * @return \Doctrine\ORM\Mapping\DefaultNamingStrategy A Doctrine\ORM\Mapping\DefaultNamingStrategy instance
2599
     */
2600
    protected function getDoctrine_Orm_NamingStrategy_DefaultService()
2601
    {
2602
        return $this->services['doctrine.orm.naming_strategy.default'] = new \Doctrine\ORM\Mapping\DefaultNamingStrategy();
2603
    }
2604
2605
    /**
2606
     * Gets the 'doctrine.orm.quote_strategy.default' service.
2607
     *
2608
     * This service is shared.
2609
     * This method always returns the same instance of the service.
2610
     *
2611
     * This service is private.
2612
     * If you want to be able to request this service from the container directly,
2613
     * make it public, otherwise you might end up with broken code.
2614
     *
2615
     * @return \Doctrine\ORM\Mapping\DefaultQuoteStrategy A Doctrine\ORM\Mapping\DefaultQuoteStrategy instance
2616
     */
2617
    protected function getDoctrine_Orm_QuoteStrategy_DefaultService()
2618
    {
2619
        return $this->services['doctrine.orm.quote_strategy.default'] = new \Doctrine\ORM\Mapping\DefaultQuoteStrategy();
2620
    }
2621
2622
    /**
2623
     * Gets the 'router.request_context' service.
2624
     *
2625
     * This service is shared.
2626
     * This method always returns the same instance of the service.
2627
     *
2628
     * This service is private.
2629
     * If you want to be able to request this service from the container directly,
2630
     * make it public, otherwise you might end up with broken code.
2631
     *
2632
     * @return \Symfony\Component\Routing\RequestContext A Symfony\Component\Routing\RequestContext instance
2633
     */
2634
    protected function getRouter_RequestContextService()
2635
    {
2636
        return $this->services['router.request_context'] = new \Symfony\Component\Routing\RequestContext('', 'GET', 'localhost', 'http', 80, 443);
2637
    }
2638
2639
    /**
2640
     * Gets the 'session.storage.metadata_bag' service.
2641
     *
2642
     * This service is shared.
2643
     * This method always returns the same instance of the service.
2644
     *
2645
     * This service is private.
2646
     * If you want to be able to request this service from the container directly,
2647
     * make it public, otherwise you might end up with broken code.
2648
     *
2649
     * @return \Symfony\Component\HttpFoundation\Session\Storage\MetadataBag A Symfony\Component\HttpFoundation\Session\Storage\MetadataBag instance
2650
     */
2651
    protected function getSession_Storage_MetadataBagService()
2652
    {
2653
        return $this->services['session.storage.metadata_bag'] = new \Symfony\Component\HttpFoundation\Session\Storage\MetadataBag('_sf2_meta', '0');
2654
    }
2655
2656
    /**
2657
     * Gets the 'translator.selector' service.
2658
     *
2659
     * This service is shared.
2660
     * This method always returns the same instance of the service.
2661
     *
2662
     * This service is private.
2663
     * If you want to be able to request this service from the container directly,
2664
     * make it public, otherwise you might end up with broken code.
2665
     *
2666
     * @return \Symfony\Component\Translation\MessageSelector A Symfony\Component\Translation\MessageSelector instance
2667
     */
2668
    protected function getTranslator_SelectorService()
2669
    {
2670
        return $this->services['translator.selector'] = new \Symfony\Component\Translation\MessageSelector();
2671
    }
2672
2673
    /**
2674
     * {@inheritdoc}
2675
     */
2676
    public function getParameter($name)
2677
    {
2678
        $name = strtolower($name);
2679
2680
        if (!(isset($this->parameters[$name]) || array_key_exists($name, $this->parameters))) {
2681
            throw new InvalidArgumentException(sprintf('The parameter "%s" must be defined.', $name));
2682
        }
2683
2684
        return $this->parameters[$name];
2685
    }
2686
2687
    /**
2688
     * {@inheritdoc}
2689
     */
2690
    public function hasParameter($name)
2691
    {
2692
        $name = strtolower($name);
2693
2694
        return isset($this->parameters[$name]) || array_key_exists($name, $this->parameters);
2695
    }
2696
2697
    /**
2698
     * {@inheritdoc}
2699
     */
2700
    public function setParameter($name, $value)
2701
    {
2702
        throw new LogicException('Impossible to call set() on a frozen ParameterBag.');
2703
    }
2704
2705
    /**
2706
     * {@inheritdoc}
2707
     */
2708
    public function getParameterBag()
2709
    {
2710
        if (null === $this->parameterBag) {
2711
            $this->parameterBag = new FrozenParameterBag($this->parameters);
2712
        }
2713
2714
        return $this->parameterBag;
2715
    }
2716
2717
    /**
2718
     * Gets the default parameters.
2719
     *
2720
     * @return array An array of the default parameters
2721
     */
2722
    protected function getDefaultParameters()
2723
    {
2724
        return array(
2725
            'kernel.root_dir' => $this->targetDirs[2],
2726
            'kernel.environment' => 'test',
2727
            'kernel.debug' => true,
2728
            'kernel.name' => 'SymfonyApp',
2729
            'kernel.cache_dir' => __DIR__,
2730
            'kernel.logs_dir' => ($this->targetDirs[2].'/logs'),
2731
            'kernel.bundles' => array(
2732
                'FrameworkBundle' => 'Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle',
2733
                'HautelookAliceBundle' => 'Hautelook\\AliceBundle\\HautelookAliceBundle',
2734
                'TestBundle' => 'Hautelook\\AliceBundle\\Tests\\SymfonyApp\\TestBundle\\TestBundle',
2735
                'TestABundle' => 'Hautelook\\AliceBundle\\Tests\\SymfonyApp\\TestBundle\\Bundle\\ABundle\\TestABundle',
2736
                'TestBBundle' => 'Hautelook\\AliceBundle\\Tests\\SymfonyApp\\TestBundle\\Bundle\\BBundle\\TestBBundle',
2737
                'TestCBundle' => 'Hautelook\\AliceBundle\\Tests\\SymfonyApp\\TestBundle\\Bundle\\CBundle\\TestCBundle',
2738
                'TestDBundle' => 'Hautelook\\AliceBundle\\Tests\\SymfonyApp\\TestBundle\\Bundle\\DBundle\\TestDBundle',
2739
                'DoctrineBundle' => 'Doctrine\\Bundle\\DoctrineBundle\\DoctrineBundle',
2740
                'DoctrineFixturesBundle' => 'Doctrine\\Bundle\\FixturesBundle\\DoctrineFixturesBundle',
2741
            ),
2742
            'kernel.charset' => 'UTF-8',
2743
            'kernel.container_class' => 'SymfonyAppTestDebugProjectContainer',
2744
            'database.name' => 'alice',
2745
            'database.user' => 'root',
2746
            'database.password' => '',
2747
            'test_app.random' => 'Random parameter',
2748
            'fragment.renderer.hinclude.global_template' => '',
2749
            'fragment.path' => '/_fragment',
2750
            'kernel.secret' => 'test',
2751
            'kernel.http_method_override' => true,
2752
            'kernel.trusted_hosts' => array(
2753
2754
            ),
2755
            'kernel.trusted_proxies' => array(
2756
2757
            ),
2758
            'kernel.default_locale' => 'en',
2759
            'test.client.parameters' => array(
2760
2761
            ),
2762
            'session.metadata.storage_key' => '_sf2_meta',
2763
            'session.storage.options' => array(
2764
                'cookie_httponly' => true,
2765
                'gc_probability' => 1,
2766
            ),
2767
            'session.save_path' => (__DIR__.'/sessions'),
2768
            'session.metadata.update_threshold' => '0',
2769
            'form.type_extension.csrf.enabled' => false,
2770
            'validator.mapping.cache.prefix' => '',
2771
            'validator.translation_domain' => 'validators',
2772
            'data_collector.templates' => array(
2773
2774
            ),
2775
            'router.options.generator_class' => 'Symfony\\Component\\Routing\\Generator\\UrlGenerator',
2776
            'router.options.generator_base_class' => 'Symfony\\Component\\Routing\\Generator\\UrlGenerator',
2777
            'router.options.generator_dumper_class' => 'Symfony\\Component\\Routing\\Generator\\Dumper\\PhpGeneratorDumper',
2778
            'router.options.matcher_class' => 'Symfony\\Bundle\\FrameworkBundle\\Routing\\RedirectableUrlMatcher',
2779
            'router.options.matcher_base_class' => 'Symfony\\Bundle\\FrameworkBundle\\Routing\\RedirectableUrlMatcher',
2780
            'router.options.matcher_dumper_class' => 'Symfony\\Component\\Routing\\Matcher\\Dumper\\PhpMatcherDumper',
2781
            'router.options.matcher.cache_class' => 'SymfonyAppTestUrlMatcher',
2782
            'router.options.generator.cache_class' => 'SymfonyAppTestUrlGenerator',
2783
            'router.request_context.host' => 'localhost',
2784
            'router.request_context.scheme' => 'http',
2785
            'router.request_context.base_url' => '',
2786
            'router.resource' => ($this->targetDirs[2].'/config/routing.yml'),
2787
            'router.cache_class_prefix' => 'SymfonyAppTest',
2788
            'request_listener.http_port' => 80,
2789
            'request_listener.https_port' => 443,
2790
            'debug.error_handler.throw_at' => -1,
2791
            'debug.container.dump' => (__DIR__.'/SymfonyAppTestDebugProjectContainer.xml'),
2792
            'hautelook_alice.db_drivers' => array(
2793
                'orm' => NULL,
2794
                'mongodb' => NULL,
2795
                'phpcr' => NULL,
2796
            ),
2797
            'hautelook_alice.locale' => 'en_US',
2798
            'hautelook_alice.seed' => 1,
2799
            'hautelook_alice.persist_once' => false,
2800
            'hautelook_alice.loading_limit' => 5,
2801
            'doctrine_cache.apc.class' => 'Doctrine\\Common\\Cache\\ApcCache',
2802
            'doctrine_cache.apcu.class' => 'Doctrine\\Common\\Cache\\ApcuCache',
2803
            'doctrine_cache.array.class' => 'Doctrine\\Common\\Cache\\ArrayCache',
2804
            'doctrine_cache.chain.class' => 'Doctrine\\Common\\Cache\\ChainCache',
2805
            'doctrine_cache.couchbase.class' => 'Doctrine\\Common\\Cache\\CouchbaseCache',
2806
            'doctrine_cache.couchbase.connection.class' => 'Couchbase',
2807
            'doctrine_cache.couchbase.hostnames' => 'localhost:8091',
2808
            'doctrine_cache.file_system.class' => 'Doctrine\\Common\\Cache\\FilesystemCache',
2809
            'doctrine_cache.php_file.class' => 'Doctrine\\Common\\Cache\\PhpFileCache',
2810
            'doctrine_cache.memcache.class' => 'Doctrine\\Common\\Cache\\MemcacheCache',
2811
            'doctrine_cache.memcache.connection.class' => 'Memcache',
2812
            'doctrine_cache.memcache.host' => 'localhost',
2813
            'doctrine_cache.memcache.port' => 11211,
2814
            'doctrine_cache.memcached.class' => 'Doctrine\\Common\\Cache\\MemcachedCache',
2815
            'doctrine_cache.memcached.connection.class' => 'Memcached',
2816
            'doctrine_cache.memcached.host' => 'localhost',
2817
            'doctrine_cache.memcached.port' => 11211,
2818
            'doctrine_cache.mongodb.class' => 'Doctrine\\Common\\Cache\\MongoDBCache',
2819
            'doctrine_cache.mongodb.collection.class' => 'MongoCollection',
2820
            'doctrine_cache.mongodb.connection.class' => 'MongoClient',
2821
            'doctrine_cache.mongodb.server' => 'localhost:27017',
2822
            'doctrine_cache.predis.client.class' => 'Predis\\Client',
2823
            'doctrine_cache.predis.scheme' => 'tcp',
2824
            'doctrine_cache.predis.host' => 'localhost',
2825
            'doctrine_cache.predis.port' => 6379,
2826
            'doctrine_cache.redis.class' => 'Doctrine\\Common\\Cache\\RedisCache',
2827
            'doctrine_cache.redis.connection.class' => 'Redis',
2828
            'doctrine_cache.redis.host' => 'localhost',
2829
            'doctrine_cache.redis.port' => 6379,
2830
            'doctrine_cache.riak.class' => 'Doctrine\\Common\\Cache\\RiakCache',
2831
            'doctrine_cache.riak.bucket.class' => 'Riak\\Bucket',
2832
            'doctrine_cache.riak.connection.class' => 'Riak\\Connection',
2833
            'doctrine_cache.riak.bucket_property_list.class' => 'Riak\\BucketPropertyList',
2834
            'doctrine_cache.riak.host' => 'localhost',
2835
            'doctrine_cache.riak.port' => 8087,
2836
            'doctrine_cache.sqlite3.class' => 'Doctrine\\Common\\Cache\\SQLite3Cache',
2837
            'doctrine_cache.sqlite3.connection.class' => 'SQLite3',
2838
            'doctrine_cache.void.class' => 'Doctrine\\Common\\Cache\\VoidCache',
2839
            'doctrine_cache.wincache.class' => 'Doctrine\\Common\\Cache\\WinCacheCache',
2840
            'doctrine_cache.xcache.class' => 'Doctrine\\Common\\Cache\\XcacheCache',
2841
            'doctrine_cache.zenddata.class' => 'Doctrine\\Common\\Cache\\ZendDataCache',
2842
            'doctrine_cache.security.acl.cache.class' => 'Doctrine\\Bundle\\DoctrineCacheBundle\\Acl\\Model\\AclCache',
2843
            'doctrine.dbal.logger.chain.class' => 'Doctrine\\DBAL\\Logging\\LoggerChain',
2844
            'doctrine.dbal.logger.profiling.class' => 'Doctrine\\DBAL\\Logging\\DebugStack',
2845
            'doctrine.dbal.logger.class' => 'Symfony\\Bridge\\Doctrine\\Logger\\DbalLogger',
2846
            'doctrine.dbal.configuration.class' => 'Doctrine\\DBAL\\Configuration',
2847
            'doctrine.data_collector.class' => 'Doctrine\\Bundle\\DoctrineBundle\\DataCollector\\DoctrineDataCollector',
2848
            'doctrine.dbal.connection.event_manager.class' => 'Symfony\\Bridge\\Doctrine\\ContainerAwareEventManager',
2849
            'doctrine.dbal.connection_factory.class' => 'Doctrine\\Bundle\\DoctrineBundle\\ConnectionFactory',
2850
            'doctrine.dbal.events.mysql_session_init.class' => 'Doctrine\\DBAL\\Event\\Listeners\\MysqlSessionInit',
2851
            'doctrine.dbal.events.oracle_session_init.class' => 'Doctrine\\DBAL\\Event\\Listeners\\OracleSessionInit',
2852
            'doctrine.class' => 'Doctrine\\Bundle\\DoctrineBundle\\Registry',
2853
            'doctrine.entity_managers' => array(
2854
                'default' => 'doctrine.orm.default_entity_manager',
2855
                'mysql' => 'doctrine.orm.mysql_entity_manager',
2856
            ),
2857
            'doctrine.default_entity_manager' => 'default',
2858
            'doctrine.dbal.connection_factory.types' => array(
2859
2860
            ),
2861
            'doctrine.connections' => array(
2862
                'default' => 'doctrine.dbal.default_connection',
2863
                'mysql' => 'doctrine.dbal.mysql_connection',
2864
            ),
2865
            'doctrine.default_connection' => 'default',
2866
            'doctrine.orm.configuration.class' => 'Doctrine\\ORM\\Configuration',
2867
            'doctrine.orm.entity_manager.class' => 'Doctrine\\ORM\\EntityManager',
2868
            'doctrine.orm.manager_configurator.class' => 'Doctrine\\Bundle\\DoctrineBundle\\ManagerConfigurator',
2869
            'doctrine.orm.cache.array.class' => 'Doctrine\\Common\\Cache\\ArrayCache',
2870
            'doctrine.orm.cache.apc.class' => 'Doctrine\\Common\\Cache\\ApcCache',
2871
            'doctrine.orm.cache.memcache.class' => 'Doctrine\\Common\\Cache\\MemcacheCache',
2872
            'doctrine.orm.cache.memcache_host' => 'localhost',
2873
            'doctrine.orm.cache.memcache_port' => 11211,
2874
            'doctrine.orm.cache.memcache_instance.class' => 'Memcache',
2875
            'doctrine.orm.cache.memcached.class' => 'Doctrine\\Common\\Cache\\MemcachedCache',
2876
            'doctrine.orm.cache.memcached_host' => 'localhost',
2877
            'doctrine.orm.cache.memcached_port' => 11211,
2878
            'doctrine.orm.cache.memcached_instance.class' => 'Memcached',
2879
            'doctrine.orm.cache.redis.class' => 'Doctrine\\Common\\Cache\\RedisCache',
2880
            'doctrine.orm.cache.redis_host' => 'localhost',
2881
            'doctrine.orm.cache.redis_port' => 6379,
2882
            'doctrine.orm.cache.redis_instance.class' => 'Redis',
2883
            'doctrine.orm.cache.xcache.class' => 'Doctrine\\Common\\Cache\\XcacheCache',
2884
            'doctrine.orm.cache.wincache.class' => 'Doctrine\\Common\\Cache\\WinCacheCache',
2885
            'doctrine.orm.cache.zenddata.class' => 'Doctrine\\Common\\Cache\\ZendDataCache',
2886
            'doctrine.orm.metadata.driver_chain.class' => 'Doctrine\\Common\\Persistence\\Mapping\\Driver\\MappingDriverChain',
2887
            'doctrine.orm.metadata.annotation.class' => 'Doctrine\\ORM\\Mapping\\Driver\\AnnotationDriver',
2888
            'doctrine.orm.metadata.xml.class' => 'Doctrine\\ORM\\Mapping\\Driver\\SimplifiedXmlDriver',
2889
            'doctrine.orm.metadata.yml.class' => 'Doctrine\\ORM\\Mapping\\Driver\\SimplifiedYamlDriver',
2890
            'doctrine.orm.metadata.php.class' => 'Doctrine\\ORM\\Mapping\\Driver\\PHPDriver',
2891
            'doctrine.orm.metadata.staticphp.class' => 'Doctrine\\ORM\\Mapping\\Driver\\StaticPHPDriver',
2892
            'doctrine.orm.proxy_cache_warmer.class' => 'Symfony\\Bridge\\Doctrine\\CacheWarmer\\ProxyCacheWarmer',
2893
            'form.type_guesser.doctrine.class' => 'Symfony\\Bridge\\Doctrine\\Form\\DoctrineOrmTypeGuesser',
2894
            'doctrine.orm.validator.unique.class' => 'Symfony\\Bridge\\Doctrine\\Validator\\Constraints\\UniqueEntityValidator',
2895
            'doctrine.orm.validator_initializer.class' => 'Symfony\\Bridge\\Doctrine\\Validator\\DoctrineInitializer',
2896
            'doctrine.orm.security.user.provider.class' => 'Symfony\\Bridge\\Doctrine\\Security\\User\\EntityUserProvider',
2897
            'doctrine.orm.listeners.resolve_target_entity.class' => 'Doctrine\\ORM\\Tools\\ResolveTargetEntityListener',
2898
            'doctrine.orm.listeners.attach_entity_listeners.class' => 'Doctrine\\ORM\\Tools\\AttachEntityListenersListener',
2899
            'doctrine.orm.naming_strategy.default.class' => 'Doctrine\\ORM\\Mapping\\DefaultNamingStrategy',
2900
            'doctrine.orm.naming_strategy.underscore.class' => 'Doctrine\\ORM\\Mapping\\UnderscoreNamingStrategy',
2901
            'doctrine.orm.quote_strategy.default.class' => 'Doctrine\\ORM\\Mapping\\DefaultQuoteStrategy',
2902
            'doctrine.orm.quote_strategy.ansi.class' => 'Doctrine\\ORM\\Mapping\\AnsiQuoteStrategy',
2903
            'doctrine.orm.entity_listener_resolver.class' => 'Doctrine\\ORM\\Mapping\\DefaultEntityListenerResolver',
2904
            'doctrine.orm.second_level_cache.default_cache_factory.class' => 'Doctrine\\ORM\\Cache\\DefaultCacheFactory',
2905
            'doctrine.orm.second_level_cache.default_region.class' => 'Doctrine\\ORM\\Cache\\Region\\DefaultRegion',
2906
            'doctrine.orm.second_level_cache.filelock_region.class' => 'Doctrine\\ORM\\Cache\\Region\\FileLockRegion',
2907
            'doctrine.orm.second_level_cache.logger_chain.class' => 'Doctrine\\ORM\\Cache\\Logging\\CacheLoggerChain',
2908
            'doctrine.orm.second_level_cache.logger_statistics.class' => 'Doctrine\\ORM\\Cache\\Logging\\StatisticsCacheLogger',
2909
            'doctrine.orm.second_level_cache.cache_configuration.class' => 'Doctrine\\ORM\\Cache\\CacheConfiguration',
2910
            'doctrine.orm.second_level_cache.regions_configuration.class' => 'Doctrine\\ORM\\Cache\\RegionsConfiguration',
2911
            'doctrine.orm.auto_generate_proxy_classes' => false,
2912
            'doctrine.orm.proxy_dir' => (__DIR__.'/doctrine/orm/Proxies'),
2913
            'doctrine.orm.proxy_namespace' => 'Proxies',
2914
            'console.command.ids' => array(
2915
                0 => 'hautelook_alice.doctrine.command.deprecated_load_command',
2916
                1 => 'hautelook_alice.doctrine.command.load_command',
2917
            ),
2918
        );
2919
    }
2920
}
2921