Skip to content
This repository was archived by the owner on Feb 6, 2020. It is now read-only.

Commit e652ed3

Browse files
committed
Made code more readable
1 parent 1d31e77 commit e652ed3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/AbstractFactory/ConfigAbstractFactory.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,9 @@ public function __invoke(\Interop\Container\ContainerInterface $container, $requ
6969
) {
7070
throw new ServiceNotCreatedException('Dependencies config must exist and be an array of strings');
7171
}
72-
$dependencies = $dependencies[$requestedName];
73-
$arguments = array_map([$container, 'get'], $dependencies);
72+
73+
$serviceDependencies = $dependencies[$requestedName];
74+
$arguments = array_map([$container, 'get'], $serviceDependencies);
7475

7576
return new $requestedName(...$arguments);
7677
}

0 commit comments

Comments
 (0)