@@ -84,7 +84,7 @@ abstract protected function describeRoute(Route $route, array $options = []): vo
84
84
85
85
abstract protected function describeContainerParameters (ParameterBag $ parameters , array $ options = []): void ;
86
86
87
- abstract protected function describeContainerTags (ContainerBuilder $ builder , array $ options = []): void ;
87
+ abstract protected function describeContainerTags (ContainerBuilder $ container , array $ options = []): void ;
88
88
89
89
/**
90
90
* Describes a container service by its name.
@@ -94,21 +94,21 @@ abstract protected function describeContainerTags(ContainerBuilder $builder, arr
94
94
*
95
95
* @param Definition|Alias|object $service
96
96
*/
97
- abstract protected function describeContainerService (object $ service , array $ options = [], ContainerBuilder $ builder = null ): void ;
97
+ abstract protected function describeContainerService (object $ service , array $ options = [], ContainerBuilder $ container = null ): void ;
98
98
99
99
/**
100
100
* Describes container services.
101
101
*
102
102
* Common options are:
103
103
* * tag: filters described services by given tag
104
104
*/
105
- abstract protected function describeContainerServices (ContainerBuilder $ builder , array $ options = []): void ;
105
+ abstract protected function describeContainerServices (ContainerBuilder $ container , array $ options = []): void ;
106
106
107
- abstract protected function describeContainerDeprecations (ContainerBuilder $ builder , array $ options = []): void ;
107
+ abstract protected function describeContainerDeprecations (ContainerBuilder $ container , array $ options = []): void ;
108
108
109
- abstract protected function describeContainerDefinition (Definition $ definition , array $ options = [], ContainerBuilder $ builder = null ): void ;
109
+ abstract protected function describeContainerDefinition (Definition $ definition , array $ options = [], ContainerBuilder $ container = null ): void ;
110
110
111
- abstract protected function describeContainerAlias (Alias $ alias , array $ options = [], ContainerBuilder $ builder = null ): void ;
111
+ abstract protected function describeContainerAlias (Alias $ alias , array $ options = [], ContainerBuilder $ container = null ): void ;
112
112
113
113
abstract protected function describeContainerParameter (mixed $ parameter , array $ options = []): void ;
114
114
@@ -170,34 +170,34 @@ protected function formatParameter(mixed $value): string
170
170
return (string ) $ value ;
171
171
}
172
172
173
- protected function resolveServiceDefinition (ContainerBuilder $ builder , string $ serviceId ): mixed
173
+ protected function resolveServiceDefinition (ContainerBuilder $ container , string $ serviceId ): mixed
174
174
{
175
- if ($ builder ->hasDefinition ($ serviceId )) {
176
- return $ builder ->getDefinition ($ serviceId );
175
+ if ($ container ->hasDefinition ($ serviceId )) {
176
+ return $ container ->getDefinition ($ serviceId );
177
177
}
178
178
179
179
// Some service IDs don't have a Definition, they're aliases
180
- if ($ builder ->hasAlias ($ serviceId )) {
181
- return $ builder ->getAlias ($ serviceId );
180
+ if ($ container ->hasAlias ($ serviceId )) {
181
+ return $ container ->getAlias ($ serviceId );
182
182
}
183
183
184
184
if ('service_container ' === $ serviceId ) {
185
185
return (new Definition (ContainerInterface::class))->setPublic (true )->setSynthetic (true );
186
186
}
187
187
188
188
// the service has been injected in some special way, just return the service
189
- return $ builder ->get ($ serviceId );
189
+ return $ container ->get ($ serviceId );
190
190
}
191
191
192
- protected function findDefinitionsByTag (ContainerBuilder $ builder , bool $ showHidden ): array
192
+ protected function findDefinitionsByTag (ContainerBuilder $ container , bool $ showHidden ): array
193
193
{
194
194
$ definitions = [];
195
- $ tags = $ builder ->findTags ();
195
+ $ tags = $ container ->findTags ();
196
196
asort ($ tags );
197
197
198
198
foreach ($ tags as $ tag ) {
199
- foreach ($ builder ->findTaggedServiceIds ($ tag ) as $ serviceId => $ attributes ) {
200
- $ definition = $ this ->resolveServiceDefinition ($ builder , $ serviceId );
199
+ foreach ($ container ->findTaggedServiceIds ($ tag ) as $ serviceId => $ attributes ) {
200
+ $ definition = $ this ->resolveServiceDefinition ($ container , $ serviceId );
201
201
202
202
if ($ showHidden xor '. ' === ($ serviceId [0 ] ?? null )) {
203
203
continue ;
@@ -334,12 +334,12 @@ private function getContainerEnvVars(ContainerBuilder $container): array
334
334
return array_values ($ envs );
335
335
}
336
336
337
- protected function getServiceEdges (ContainerBuilder $ builder , string $ serviceId ): array
337
+ protected function getServiceEdges (ContainerBuilder $ container , string $ serviceId ): array
338
338
{
339
339
try {
340
340
return array_values (array_unique (array_map (
341
341
fn (ServiceReferenceGraphEdge $ edge ) => $ edge ->getSourceNode ()->getId (),
342
- $ builder ->getCompiler ()->getServiceReferenceGraph ()->getNode ($ serviceId )->getInEdges ()
342
+ $ container ->getCompiler ()->getServiceReferenceGraph ()->getNode ($ serviceId )->getInEdges ()
343
343
)));
344
344
} catch (InvalidArgumentException $ exception ) {
345
345
return [];
0 commit comments