[DependencyInjection] XML: optimize defaults parsing
This commit is contained in:
parent
63b8d31885
commit
dc115ab91b
@ -125,8 +125,9 @@ class XmlFileLoader extends FileLoader
|
||||
return;
|
||||
}
|
||||
|
||||
$defaults = $this->getServiceDefaults($xml, $file);
|
||||
foreach ($services as $service) {
|
||||
if (null !== $definition = $this->parseDefinition($service, $file, $this->getServiceDefaults($xml, $file))) {
|
||||
if (null !== $definition = $this->parseDefinition($service, $file, $defaults)) {
|
||||
$this->container->setDefinition((string) $service->getAttribute('id'), $definition);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user