1 | <?php |
||
22 | final class ServiceParser |
||
23 | { |
||
24 | /** |
||
25 | * @var AliasParser |
||
26 | */ |
||
27 | private $aliasParser; |
||
28 | |||
29 | /** |
||
30 | * @var AutowiringTypesParser |
||
31 | */ |
||
32 | private $autowiringTypesParser; |
||
33 | |||
34 | /** |
||
35 | * @var ClassParser |
||
36 | */ |
||
37 | private $classParser; |
||
38 | |||
39 | /** |
||
40 | * @var DecorationParser |
||
41 | */ |
||
42 | private $decorationParser; |
||
43 | |||
44 | /** |
||
45 | * @var FactoryParser |
||
46 | */ |
||
47 | private $factoryParser; |
||
48 | |||
49 | /** |
||
50 | * @var ResolverInterface |
||
51 | */ |
||
52 | private $serviceResolver; |
||
53 | |||
54 | /** |
||
55 | * @var TagsParser |
||
56 | */ |
||
57 | private $tagsParser; |
||
58 | |||
59 | public function __construct(ResolverInterface $serviceResolver) |
||
70 | |||
71 | /** |
||
72 | * Parses a service definition and register it to the container. |
||
73 | * |
||
74 | * @param ContainerBuilder $container |
||
75 | * @param string $id |
||
76 | * @param array|string $service |
||
77 | * @param string $fileName file name |
||
78 | * |
||
79 | * @throws InvalidArgumentException |
||
80 | */ |
||
81 | public function parse(ContainerBuilder $container, $id, array $service, $fileName) |
||
100 | |||
101 | private function createService($id, $class, array $arguments, array $autowiringTypes, array $tags, $fileName) |
||
113 | } |
||
114 |
This check looks for variables that are accessed but have not been defined. It raises an issue if it finds another variable that has a similar name.
The variable may have been renamed without also renaming all references.