Skip to content

Commit d64f5df

Browse files
committed
Removed unused use statements & make tests compatible with PHP 5.4
1 parent 0222a16 commit d64f5df

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

DependencyInjection/Compiler/TaggedServiceMappingPass.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Overblog\GraphQLBundle\DependencyInjection\Compiler;
1313

1414
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
15-
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
1615
use Symfony\Component\DependencyInjection\ContainerBuilder;
1716
use Symfony\Component\DependencyInjection\Reference;
1817

Tests/DependencyInjection/Compiler/ResolverTaggedServiceMappingPassTest.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use Overblog\GraphQLBundle\DependencyInjection\Compiler\ResolverTaggedServiceMappingPass;
66
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
7-
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
87
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
98
use Symfony\Component\DependencyInjection\ContainerAwareTrait;
109
use 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'

0 commit comments

Comments
 (0)