Skip to content

Commit

Permalink
Uses the test container if exists
Browse files Browse the repository at this point in the history
  • Loading branch information
sroze authored Apr 8, 2018
1 parent 022ece0 commit 2eef810
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ private function resolveArgument($argument)
}

$container = $this->kernel->getContainer();
$container = $container->has('test.service_container') ? $container->get('test.service_container') : $container;

if ($service = $this->getService($container, $argument)) {
return $service;
Expand Down

0 comments on commit 2eef810

Please # to comment.