|
| 1 | +rules: |
| 2 | + - PHPStan\Rules\Symfony\ContainerInterfacePrivateServiceRule |
| 3 | + - PHPStan\Rules\Symfony\ContainerInterfaceUnknownServiceRule |
| 4 | + |
1 | 5 | services:
|
| 6 | + # service map |
| 7 | + symfony.serviceMapFactory: |
| 8 | + class: PHPStan\Symfony\ServiceMapFactory |
| 9 | + factory: PHPStan\Symfony\XmlServiceMapFactory(%symfony.container_xml_path%) |
2 | 10 | -
|
3 |
| - class: PHPStan\Type\Symfony\ContainerInterfaceDynamicReturnTypeExtension |
4 |
| - tags: |
5 |
| - - phpstan.broker.dynamicMethodReturnTypeExtension |
| 11 | + class: PHPStan\Symfony\ServiceMap(@symfony.serviceMapFactory::create()) |
| 12 | + |
| 13 | + # ControllerTrait::get()/has() return type |
6 | 14 | -
|
7 |
| - class: PHPStan\Type\Symfony\ControllerDynamicReturnTypeExtension |
8 |
| - tags: |
9 |
| - - phpstan.broker.dynamicMethodReturnTypeExtension |
| 15 | + class: PHPStan\Type\Symfony\ServiceDynamicReturnTypeExtension(Symfony\Component\DependencyInjection\ContainerInterface) |
| 16 | + tags: [phpstan.broker.dynamicMethodReturnTypeExtension] |
10 | 17 | -
|
11 |
| - class: PHPStan\Type\Symfony\RequestDynamicReturnTypeExtension |
12 |
| - tags: |
13 |
| - - phpstan.broker.dynamicMethodReturnTypeExtension |
| 18 | + class: PHPStan\Type\Symfony\ServiceDynamicReturnTypeExtension(Symfony\Bundle\FrameworkBundle\Controller\Controller) |
| 19 | + tags: [phpstan.broker.dynamicMethodReturnTypeExtension] |
14 | 20 | -
|
15 |
| - class: PHPStan\Rules\Symfony\ContainerInterfacePrivateServiceRule |
16 |
| - tags: |
17 |
| - - phpstan.rules.rule |
| 21 | + class: PHPStan\Type\Symfony\ServiceDynamicReturnTypeExtension(Symfony\Bundle\FrameworkBundle\Controller\AbstractController) |
| 22 | + tags: [phpstan.broker.dynamicMethodReturnTypeExtension] |
| 23 | + |
| 24 | + # ControllerTrait::has() type specification |
18 | 25 | -
|
19 |
| - class: PHPStan\Rules\Symfony\ContainerInterfaceUnknownServiceRule |
20 |
| - tags: |
21 |
| - - phpstan.rules.rule |
| 26 | + class: PHPStan\Type\Symfony\ServiceTypeSpecifyingExtension(Symfony\Component\DependencyInjection\ContainerInterface) |
| 27 | + tags: [phpstan.typeSpecifier.methodTypeSpecifyingExtension] |
22 | 28 | -
|
23 |
| - class: PHPStan\Type\Symfony\ContainerInterfaceMethodTypeSpecifyingExtension |
24 |
| - tags: |
25 |
| - - phpstan.typeSpecifier.methodTypeSpecifyingExtension |
| 29 | + class: PHPStan\Type\Symfony\ServiceTypeSpecifyingExtension(Symfony\Bundle\FrameworkBundle\Controller\Controller) |
| 30 | + tags: [phpstan.typeSpecifier.methodTypeSpecifyingExtension] |
26 | 31 | -
|
27 |
| - class: PHPStan\Type\Symfony\ControllerMethodTypeSpecifyingExtension |
28 |
| - tags: |
29 |
| - - phpstan.typeSpecifier.methodTypeSpecifyingExtension |
| 32 | + class: PHPStan\Type\Symfony\ServiceTypeSpecifyingExtension(Symfony\Bundle\FrameworkBundle\Controller\AbstractController) |
| 33 | + tags: [phpstan.typeSpecifier.methodTypeSpecifyingExtension] |
| 34 | + |
| 35 | + # Request::getContent() return type |
30 | 36 | -
|
31 |
| - class: PHPStan\Symfony\ServiceMap |
32 |
| - arguments: |
33 |
| - containerXml: %symfony.container_xml_path% |
| 37 | + class: PHPStan\Type\Symfony\RequestDynamicReturnTypeExtension |
| 38 | + tags: [phpstan.broker.dynamicMethodReturnTypeExtension] |
0 commit comments