-
Notifications
You must be signed in to change notification settings - Fork 89
/
extension.neon
350 lines (310 loc) · 15.4 KB
/
extension.neon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
parameters:
dynamicConstantNames:
- Symfony\Component\HttpKernel\Kernel::VERSION_ID
exceptions:
uncheckedExceptionClasses:
- 'Symfony\Component\Console\Exception\InvalidArgumentException'
symfony:
containerXmlPath: null
constantHassers: true
consoleApplicationLoader: null
stubFiles:
- stubs/Psr/Cache/CacheException.stub
- stubs/Psr/Cache/CacheItemInterface.stub
- stubs/Psr/Cache/InvalidArgumentException.stub
- stubs/Symfony/Bundle/FrameworkBundle/Controller/AbstractController.stub
- stubs/Symfony/Bundle/FrameworkBundle/KernelBrowser.stub
- stubs/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.stub
- stubs/Symfony/Bundle/FrameworkBundle/Test/TestContainer.stub
- stubs/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/AuthenticatorFactoryInterface.stub
- stubs/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/FirewallListenerFactoryInterface.stub
- stubs/Symfony/Component/Console/Command.stub
- stubs/Symfony/Component/Console/Exception/ExceptionInterface.stub
- stubs/Symfony/Component/Console/Exception/InvalidArgumentException.stub
- stubs/Symfony/Component/Console/Exception/LogicException.stub
- stubs/Symfony/Component/Console/Helper/HelperInterface.stub
- stubs/Symfony/Component/Console/Output/OutputInterface.stub
- stubs/Symfony/Component/DependencyInjection/ContainerBuilder.stub
- stubs/Symfony/Component/DependencyInjection/Extension/ExtensionInterface.stub
- stubs/Symfony/Component/EventDispatcher/EventDispatcherInterface.stub
- stubs/Symfony/Component/EventDispatcher/EventSubscriberInterface.stub
- stubs/Symfony/Component/EventDispatcher/GenericEvent.stub
- stubs/Symfony/Component/Form/AbstractType.stub
- stubs/Symfony/Component/Form/ChoiceList/Loader/ChoiceLoaderInterface.stub
- stubs/Symfony/Component/Form/Exception/ExceptionInterface.stub
- stubs/Symfony/Component/Form/Exception/RuntimeException.stub
- stubs/Symfony/Component/Form/Exception/TransformationFailedException.stub
- stubs/Symfony/Component/Form/DataTransformerInterface.stub
- stubs/Symfony/Component/Form/FormBuilderInterface.stub
- stubs/Symfony/Component/Form/FormConfigBuilderInterface.stub
- stubs/Symfony/Component/Form/FormConfigInterface.stub
- stubs/Symfony/Component/Form/FormInterface.stub
- stubs/Symfony/Component/Form/FormFactoryInterface.stub
- stubs/Symfony/Component/Form/FormTypeExtensionInterface.stub
- stubs/Symfony/Component/Form/FormTypeInterface.stub
- stubs/Symfony/Component/Form/FormView.stub
- stubs/Symfony/Component/HttpFoundation/Cookie.stub
- stubs/Symfony/Component/HttpFoundation/HeaderBag.stub
- stubs/Symfony/Component/HttpFoundation/ParameterBag.stub
- stubs/Symfony/Component/HttpFoundation/Session.stub
- stubs/Symfony/Component/Messenger/StampInterface.stub
- stubs/Symfony/Component/Messenger/Envelope.stub
- stubs/Symfony/Component/OptionsResolver/Exception/InvalidOptionsException.stub
- stubs/Symfony/Component/OptionsResolver/Options.stub
- stubs/Symfony/Component/Process/Exception/LogicException.stub
- stubs/Symfony/Component/Process/Process.stub
- stubs/Symfony/Component/PropertyAccess/Exception/AccessException.stub
- stubs/Symfony/Component/PropertyAccess/Exception/ExceptionInterface.stub
- stubs/Symfony/Component/PropertyAccess/Exception/InvalidArgumentException.stub
- stubs/Symfony/Component/PropertyAccess/Exception/RuntimeException.stub
- stubs/Symfony/Component/PropertyAccess/Exception/UnexpectedTypeException.stub
- stubs/Symfony/Component/PropertyAccess/PropertyAccessorInterface.stub
- stubs/Symfony/Component/PropertyAccess/PropertyPathInterface.stub
- stubs/Symfony/Component/Security/Acl/Model/AclInterface.stub
- stubs/Symfony/Component/Security/Acl/Model/EntryInterface.stub
- stubs/Symfony/Component/Security/Core/Authentication/Token/TokenInterface.stub
- stubs/Symfony/Component/Security/Core/Authorization/Voter/Voter.stub
- stubs/Symfony/Component/Security/Core/Authorization/Voter/VoterInterface.stub
- stubs/Symfony/Component/Serializer/Encoder/ContextAwareDecoderInterface.stub
- stubs/Symfony/Component/Serializer/Encoder/DecoderInterface.stub
- stubs/Symfony/Component/Serializer/Encoder/EncoderInterface.stub
- stubs/Symfony/Component/Serializer/Exception/BadMethodCallException.stub
- stubs/Symfony/Component/Serializer/Exception/CircularReferenceException.stub
- stubs/Symfony/Component/Serializer/Exception/ExceptionInterface.stub
- stubs/Symfony/Component/Serializer/Exception/ExtraAttributesException.stub
- stubs/Symfony/Component/Serializer/Exception/InvalidArgumentException.stub
- stubs/Symfony/Component/Serializer/Exception/LogicException.stub
- stubs/Symfony/Component/Serializer/Exception/RuntimeException.stub
- stubs/Symfony/Component/Serializer/Exception/UnexpectedValueException.stub
- stubs/Symfony/Component/Serializer/Normalizer/ContextAwareDenormalizerInterface.stub
- stubs/Symfony/Component/Serializer/Normalizer/ContextAwareNormalizerInterface.stub
- stubs/Symfony/Component/Serializer/Normalizer/DenormalizableInterface.stub
- stubs/Symfony/Component/Serializer/Normalizer/DenormalizerInterface.stub
- stubs/Symfony/Component/Serializer/Normalizer/NormalizableInterface.stub
- stubs/Symfony/Component/Serializer/Normalizer/NormalizerInterface.stub
- stubs/Symfony/Component/Validator/Constraint.stub
- stubs/Symfony/Component/Validator/Constraints/Composite.stub
- stubs/Symfony/Component/Validator/Constraints/Compound.stub
- stubs/Symfony/Component/Validator/ConstraintViolationInterface.stub
- stubs/Symfony/Component/Validator/ConstraintViolationListInterface.stub
- stubs/Symfony/Contracts/Cache/CacheInterface.stub
- stubs/Symfony/Contracts/Cache/CallbackInterface.stub
- stubs/Symfony/Contracts/Cache/ItemInterface.stub
- stubs/Symfony/Contracts/Service/ServiceSubscriberInterface.stub
- stubs/Twig/Node/Node.stub
parametersSchema:
symfony: structure([
containerXmlPath: schema(string(), nullable())
constantHassers: bool()
consoleApplicationLoader: schema(string(), nullable())
])
services:
-
factory: PHPStan\Symfony\Configuration(%symfony%)
# console resolver
-
factory: PHPStan\Symfony\ConsoleApplicationResolver
# service map
symfony.serviceMapFactory:
class: PHPStan\Symfony\ServiceMapFactory
factory: PHPStan\Symfony\XmlServiceMapFactory
-
factory: @symfony.serviceMapFactory::create()
# parameter map
symfony.parameterMapFactory:
class: PHPStan\Symfony\ParameterMapFactory
factory: PHPStan\Symfony\XmlParameterMapFactory
-
factory: @symfony.parameterMapFactory::create()
# ControllerTrait::get()/has() return type
-
factory: PHPStan\Type\Symfony\ServiceDynamicReturnTypeExtension(Symfony\Component\DependencyInjection\ContainerInterface)
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
-
factory: PHPStan\Type\Symfony\ServiceDynamicReturnTypeExtension(Psr\Container\ContainerInterface)
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
-
factory: PHPStan\Type\Symfony\ServiceDynamicReturnTypeExtension(Symfony\Bundle\FrameworkBundle\Controller\Controller)
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
-
factory: PHPStan\Type\Symfony\ServiceDynamicReturnTypeExtension(Symfony\Bundle\FrameworkBundle\Controller\AbstractController)
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
# ControllerTrait::has() type specification
-
factory: PHPStan\Type\Symfony\ServiceTypeSpecifyingExtension(Symfony\Component\DependencyInjection\ContainerInterface)
tags: [phpstan.typeSpecifier.methodTypeSpecifyingExtension]
-
factory: PHPStan\Type\Symfony\ServiceTypeSpecifyingExtension(Psr\Container\ContainerInterface)
tags: [phpstan.typeSpecifier.methodTypeSpecifyingExtension]
-
factory: PHPStan\Type\Symfony\ServiceTypeSpecifyingExtension(Symfony\Bundle\FrameworkBundle\Controller\Controller)
tags: [phpstan.typeSpecifier.methodTypeSpecifyingExtension]
-
factory: PHPStan\Type\Symfony\ServiceTypeSpecifyingExtension(Symfony\Bundle\FrameworkBundle\Controller\AbstractController)
tags: [phpstan.typeSpecifier.methodTypeSpecifyingExtension]
# Request::getContent() return type
-
factory: PHPStan\Type\Symfony\RequestDynamicReturnTypeExtension
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
# Request::getSession() type specification
-
factory: PHPStan\Type\Symfony\RequestTypeSpecifyingExtension
tags: [phpstan.typeSpecifier.methodTypeSpecifyingExtension]
# InputBag::get() return type
-
factory: PHPStan\Type\Symfony\InputBagDynamicReturnTypeExtension
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
# HeaderBag::get() return type
-
factory: PHPStan\Type\Symfony\HeaderBagDynamicReturnTypeExtension
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
# SerializerInterface::deserialize() return type
-
factory: PHPStan\Type\Symfony\SerializerDynamicReturnTypeExtension(Symfony\Component\Serializer\SerializerInterface, deserialize)
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
# DenormalizerInterface::denormalize() return type
-
factory: PHPStan\Type\Symfony\SerializerDynamicReturnTypeExtension(Symfony\Component\Serializer\Normalizer\DenormalizerInterface, denormalize)
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
# Envelope::all() return type
-
factory: PHPStan\Type\Symfony\EnvelopeReturnTypeExtension
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
# InputInterface::getArgument() return type
-
factory: PHPStan\Type\Symfony\InputInterfaceGetArgumentDynamicReturnTypeExtension
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
# InputInterface::hasArgument() type specification
-
factory: PHPStan\Type\Symfony\ArgumentTypeSpecifyingExtension
tags: [phpstan.typeSpecifier.methodTypeSpecifyingExtension]
# InputInterface::hasArgument() return type
-
factory: PHPStan\Type\Symfony\InputInterfaceHasArgumentDynamicReturnTypeExtension
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
# InputInterface::getOption() return type
-
factory: PHPStan\Type\Symfony\GetOptionTypeHelper
-
factory: PHPStan\Type\Symfony\InputInterfaceGetOptionDynamicReturnTypeExtension
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
# InputInterface::getOptions() return type
-
factory: PHPStan\Type\Symfony\InputInterfaceGetOptionsDynamicReturnTypeExtension
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
# InputInterface::hasOption() type specification
-
factory: PHPStan\Type\Symfony\OptionTypeSpecifyingExtension
tags: [phpstan.typeSpecifier.methodTypeSpecifyingExtension]
# InputInterface::hasOption() return type
-
factory: PHPStan\Type\Symfony\InputInterfaceHasOptionDynamicReturnTypeExtension
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
# ArrayNodeDefinition::*prototype() return type
-
factory: PHPStan\Type\Symfony\Config\ArrayNodeDefinitionPrototypeDynamicReturnTypeExtension
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
# ExprBuilder::end() return type
-
factory: PHPStan\Type\Symfony\Config\ReturnParentDynamicReturnTypeExtension
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
arguments:
className: Symfony\Component\Config\Definition\Builder\ExprBuilder
methods: [end]
# NodeBuilder::*node() return type
-
factory: PHPStan\Type\Symfony\Config\PassParentObjectDynamicReturnTypeExtension
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
arguments:
className: Symfony\Component\Config\Definition\Builder\NodeBuilder
methods: [arrayNode, scalarNode, booleanNode, integerNode, floatNode, enumNode, variableNode]
# NodeBuilder::end() return type
-
factory: PHPStan\Type\Symfony\Config\ReturnParentDynamicReturnTypeExtension
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
arguments:
className: Symfony\Component\Config\Definition\Builder\NodeBuilder
methods: [end]
# NodeDefinition::children() return type
-
factory: PHPStan\Type\Symfony\Config\PassParentObjectDynamicReturnTypeExtension
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
arguments:
className: Symfony\Component\Config\Definition\Builder\NodeDefinition
methods: [children, validate, beforeNormalization]
# NodeDefinition::end() return type
-
factory: PHPStan\Type\Symfony\Config\ReturnParentDynamicReturnTypeExtension
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
arguments:
className: Symfony\Component\Config\Definition\Builder\NodeDefinition
methods: [end]
# new TreeBuilder() return type
-
factory: PHPStan\Type\Symfony\Config\TreeBuilderDynamicReturnTypeExtension
tags: [phpstan.broker.dynamicStaticMethodReturnTypeExtension]
# TreeBuilder::getRootNode() return type
-
factory: PHPStan\Type\Symfony\Config\TreeBuilderGetRootNodeDynamicReturnTypeExtension
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
# KernelInterface::locateResource() return type
-
class: PHPStan\Type\Symfony\KernelInterfaceDynamicReturnTypeExtension
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
# ParameterBagInterface::get()/has() return type
-
factory: PHPStan\Type\Symfony\ParameterDynamicReturnTypeExtension(Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface, 'get', 'has')
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
# ContainerInterface::getParameter()/hasParameter() return type
-
factory: PHPStan\Type\Symfony\ParameterDynamicReturnTypeExtension(Symfony\Component\DependencyInjection\ContainerInterface, 'getParameter', 'hasParameter')
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
# (Abstract)Controller::getParameter() return type
-
factory: PHPStan\Type\Symfony\ParameterDynamicReturnTypeExtension(Symfony\Bundle\FrameworkBundle\Controller\AbstractController, 'getParameter', null)
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
-
factory: PHPStan\Type\Symfony\ParameterDynamicReturnTypeExtension(Symfony\Bundle\FrameworkBundle\Controller\Controller, 'getParameter', null)
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
-
class: PHPStan\Symfony\InputBagStubFilesExtension
tags:
- phpstan.stubFilesExtension
-
class: PHPStan\Symfony\PasswordAuthenticatedUserStubFilesExtension
tags:
- phpstan.stubFilesExtension
-
class: PHPStan\Symfony\SymfonyDiagnoseExtension
tags:
- phpstan.diagnoseExtension
# FormInterface::getErrors() return type
-
factory: PHPStan\Type\Symfony\Form\FormInterfaceDynamicReturnTypeExtension
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
# Command::getHelper() return type
-
factory: PHPStan\Type\Symfony\CommandGetHelperDynamicReturnTypeExtension
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
# ResponseHeaderBag::getCookies() return type
-
factory: PHPStan\Type\Symfony\ResponseHeaderBagDynamicReturnTypeExtension
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
# InputBag::get() type specification
-
factory: PHPStan\Type\Symfony\InputBagTypeSpecifyingExtension
tags: [phpstan.typeSpecifier.methodTypeSpecifyingExtension]
# Additional constructors and initialization checks for @required autowiring
-
class: PHPStan\Symfony\RequiredAutowiringExtension
tags:
- phpstan.properties.readWriteExtension
- phpstan.additionalConstructorsExtension
# CacheInterface::get() return type
-
factory: PHPStan\Type\Symfony\CacheInterfaceGetDynamicReturnTypeExtension
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
# Extension::getConfiguration() return type
-
factory: PHPStan\Type\Symfony\ExtensionGetConfigurationReturnTypeExtension
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]