Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
Merge pull request #117 from Darkrulerz/Symfony-3-Fix
Browse files Browse the repository at this point in the history
Fix "undefined service 'test.client'"
  • Loading branch information
kleijnweb committed Apr 19, 2018
2 parents 2252019 + 63062cc commit d2b872d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/DependencyInjection/InjectTestClientCompilerPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ class InjectTestClientCompilerPass implements CompilerPassInterface
{
public function process(ContainerBuilder $container)
{
$container->getDefinition('test.client')->setClass('KleijnWeb\SwaggerBundle\Test\ApiTestClient');
if ($container->hasDefinition('test.client')) {
$container->getDefinition('test.client')->setClass('KleijnWeb\SwaggerBundle\Test\ApiTestClient');
}
}
}

0 comments on commit d2b872d

Please sign in to comment.