forked from phpstan/phpstan-symfony
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathextension.neon
147 lines (129 loc) · 5.55 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
parameters:
symfony:
container_xml_path: null
constant_hassers: true
console_application_loader: null
stubFiles:
- stubs/ChoiceLoaderInterface.stub
- stubs/Constraint.stub
- stubs/ConstraintViolationInterface.stub
- stubs/ConstraintViolationListInterface.stub
- stubs/ContainerBuilder.stub
- stubs/ContextAwareDecoderInterface.stub
- stubs/ContextAwareDenormalizerInterface.stub
- stubs/ContextAwareNormalizerInterface.stub
- stubs/Cookie.stub
- stubs/DecoderInterface.stub
- stubs/DenormalizableInterface.stub
- stubs/DenormalizerInterface.stub
- stubs/EncoderInterface.stub
- stubs/EventSubscriberInterface.stub
- stubs/ExtensionInterface.stub
- stubs/FormBuilderInterface.stub
- stubs/FormInterface.stub
- stubs/FormTypeExtensionInterface.stub
- stubs/FormTypeInterface.stub
- stubs/FormView.stub
- stubs/HeaderBag.stub
- stubs/Node.stub
- stubs/NormalizableInterface.stub
- stubs/NormalizerInterface.stub
- stubs/ParameterBag.stub
- stubs/Process.stub
- stubs/PropertyPathInterface.stub
- stubs/Session.stub
parametersSchema:
symfony: structure([
container_xml_path: schema(string(), nullable())
constant_hassers: bool()
console_application_loader: schema(string(), nullable())
])
services:
# console resolver
-
factory: PHPStan\Symfony\ConsoleApplicationResolver
arguments: [%symfony.console_application_loader%]
# service map
symfony.serviceMapFactory:
class: PHPStan\Symfony\ServiceMapFactory
factory: PHPStan\Symfony\XmlServiceMapFactory(%symfony.container_xml_path%)
-
factory: @symfony.serviceMapFactory::create()
# ControllerTrait::get()/has() return type
-
factory: PHPStan\Type\Symfony\ServiceDynamicReturnTypeExtension(Symfony\Component\DependencyInjection\ContainerInterface, %symfony.constant_hassers%)
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
-
factory: PHPStan\Type\Symfony\ServiceDynamicReturnTypeExtension(Psr\Container\ContainerInterface, %symfony.constant_hassers%)
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
-
factory: PHPStan\Type\Symfony\ServiceDynamicReturnTypeExtension(Symfony\Bundle\FrameworkBundle\Controller\Controller, %symfony.constant_hassers%)
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
-
factory: PHPStan\Type\Symfony\ServiceDynamicReturnTypeExtension(Symfony\Bundle\FrameworkBundle\Controller\AbstractController, %symfony.constant_hassers%)
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\InputInterfaceGetOptionDynamicReturnTypeExtension
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]