Skip to content

Commit ec3c559

Browse files
authored
Merge pull request #3 from moufmouf/bundle_name
Changing the bundle class name to match the Symfony convention
2 parents 177137b + bc56a99 commit ec3c559

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

DependencyInjection/TdbmGraphqlCompilerPass.php renamed to DependencyInjection/TheCodingMachineTdbmGraphqlCompilerPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
/**
4242
* Detects controllers and types automatically and tag them.
4343
*/
44-
class TdbmGraphqlCompilerPass implements CompilerPassInterface
44+
class TheCodingMachineTdbmGraphqlCompilerPass implements CompilerPassInterface
4545
{
4646
/**
4747
* This Compiler pass adds the GraphQLTypeAnnotator to TDBM configuration

DependencyInjection/TdbmGraphqlExtension.php renamed to DependencyInjection/TheCodingMachineTdbmGraphqlExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use Symfony\Component\DependencyInjection\Extension\Extension;
1010
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
1111

12-
class TdbmGraphqlExtension extends Extension
12+
class TheCodingMachineTdbmGraphqlExtension extends Extension
1313
{
1414

1515
/**

Tests/TdbmGraphqlTestingKernel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use Symfony\Component\Routing\RouteCollectionBuilder;
1313
use TheCodingMachine\Graphqlite\Bundle\GraphqliteBundle;
1414
use TheCodingMachine\TDBM\Bundle\TdbmBundle;
15-
use TheCodingMachine\Tdbm\Graphql\Bundle\TdbmGraphqlBundle;
15+
use TheCodingMachine\Tdbm\Graphql\Bundle\TheCodingMachineTdbmGraphqlBundle;
1616

1717
class TdbmGraphqlTestingKernel extends Kernel
1818
{
@@ -32,7 +32,7 @@ public function registerBundles()
3232
new DoctrineBundle(),
3333
new TdbmBundle(),
3434
new GraphqliteBundle(),
35-
new TdbmGraphqlBundle(),
35+
new TheCodingMachineTdbmGraphqlBundle(),
3636
];
3737
}
3838

TdbmGraphqlBundle.php renamed to TheCodingMachineTdbmGraphqlBundle.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
77
use Symfony\Component\DependencyInjection\ContainerBuilder;
88
use Symfony\Component\HttpKernel\Bundle\Bundle;
9-
use TheCodingMachine\Tdbm\Graphql\Bundle\DependencyInjection\TdbmGraphqlCompilerPass;
9+
use TheCodingMachine\Tdbm\Graphql\Bundle\DependencyInjection\TheCodingMachineTdbmGraphqlCompilerPass;
1010

11-
class TdbmGraphqlBundle extends Bundle
11+
class TheCodingMachineTdbmGraphqlBundle extends Bundle
1212
{
1313
public function build(ContainerBuilder $container)
1414
{
1515
parent::build($container);
1616

17-
$container->addCompilerPass(new TdbmGraphqlCompilerPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, 1);
17+
$container->addCompilerPass(new TheCodingMachineTdbmGraphqlCompilerPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, 1);
1818
}
1919
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"php-coveralls/php-coveralls": "^2.1"
3232
},
3333
"scripts": {
34-
"phpstan": "phpstan analyse TdbmGraphqlBundle.php DependencyInjection/ Resources/ -c phpstan.neon --level=7 --no-progress"
34+
"phpstan": "phpstan analyse TheCodingMachineTdbmGraphqlBundle.php DependencyInjection/ Resources/ -c phpstan.neon --level=7 --no-progress"
3535
},
3636
"autoload" : {
3737
"psr-4" : {

0 commit comments

Comments
 (0)