File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
DependencyInjection/Compiler
Tests/DependencyInjection/Compiler Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1212namespace Overblog \GraphQLBundle \DependencyInjection \Compiler ;
1313
1414use Symfony \Component \DependencyInjection \Compiler \CompilerPassInterface ;
15- use Symfony \Component \DependencyInjection \ContainerAwareInterface ;
1615use Symfony \Component \DependencyInjection \ContainerBuilder ;
1716use Symfony \Component \DependencyInjection \Reference ;
1817
Original file line number Diff line number Diff line change 44
55use Overblog \GraphQLBundle \DependencyInjection \Compiler \ResolverTaggedServiceMappingPass ;
66use Symfony \Component \DependencyInjection \Compiler \CompilerPassInterface ;
7- use Symfony \Component \DependencyInjection \Compiler \PassConfig ;
87use Symfony \Component \DependencyInjection \ContainerAwareInterface ;
98use Symfony \Component \DependencyInjection \ContainerAwareTrait ;
109use Symfony \Component \DependencyInjection \ContainerBuilder ;
@@ -25,13 +24,17 @@ class ResolverTaggedServiceMappingPassTest extends \PHPUnit_Framework_TestCase
2524 public function setUp ()
2625 {
2726 $ container = new ContainerBuilder ();
28- $ container ->setDefinition ('injected_service ' , new Definition (FakeInjectedService::class));
27+ $ container ->setDefinition (
28+ 'injected_service ' ,
29+ new Definition ('Overblog\GraphQLBundle\Tests\DependencyInjection\Compiler\FakeInjectedService ' )
30+ );
31+
2932 $ container ->register (
3033 'overblog_graphql.resolver_resolver ' ,
3134 "Overblog \\GraphQLBundle \\Resolver \\ResolverResolver "
3235 );
3336
34- $ fakeResolver = new Definition (FakeResolverService::class );
37+ $ fakeResolver = new Definition (' Overblog\GraphQLBundle\Tests\DependencyInjection\Compiler\ FakeResolverService' );
3538 $ fakeResolver
3639 ->addTag ( 'overblog_graphql.resolver ' , [
3740 'alias ' => 'fake_resolver ' , 'method ' => 'doSomethingWithContainer '
You can’t perform that action at this time.
0 commit comments