|
1 | 1 | <?php |
2 | 2 |
|
3 | 3 |
|
4 | | -namespace TheCodingMachine\Graphql\Controllers\Bundle\DependencyInjection; |
| 4 | +namespace TheCodingMachine\Graphqlite\Bundle\DependencyInjection; |
5 | 5 |
|
6 | 6 | use function class_exists; |
7 | 7 | use Doctrine\Common\Annotations\AnnotationException; |
|
20 | 20 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
21 | 21 | use Symfony\Component\DependencyInjection\Definition; |
22 | 22 | use Symfony\Component\DependencyInjection\Reference; |
23 | | -use TheCodingMachine\GraphQL\Controllers\AnnotationReader; |
24 | | -use TheCodingMachine\GraphQL\Controllers\Annotations\Mutation; |
25 | | -use TheCodingMachine\GraphQL\Controllers\Annotations\Query; |
26 | | -use TheCodingMachine\Graphql\Controllers\Bundle\Mappers\ContainerFetcherTypeMapper; |
27 | | -use TheCodingMachine\Graphql\Controllers\Bundle\QueryProviders\ControllerQueryProvider; |
28 | | -use TheCodingMachine\GraphQL\Controllers\FieldsBuilderFactory; |
29 | | -use TheCodingMachine\GraphQL\Controllers\InputTypeGenerator; |
30 | | -use TheCodingMachine\GraphQL\Controllers\InputTypeUtils; |
31 | | -use TheCodingMachine\GraphQL\Controllers\Mappers\GlobTypeMapper; |
32 | | -use TheCodingMachine\GraphQL\Controllers\Mappers\RecursiveTypeMapperInterface; |
33 | | -use TheCodingMachine\GraphQL\Controllers\Mappers\StaticTypeMapper; |
34 | | -use TheCodingMachine\GraphQL\Controllers\NamingStrategy; |
35 | | -use TheCodingMachine\GraphQL\Controllers\TypeGenerator; |
36 | | -use TheCodingMachine\GraphQL\Controllers\Types\MutableObjectType; |
37 | | -use TheCodingMachine\GraphQL\Controllers\Types\ResolvableInputObjectType; |
| 23 | +use TheCodingMachine\GraphQLite\AnnotationReader; |
| 24 | +use TheCodingMachine\GraphQLite\Annotations\Mutation; |
| 25 | +use TheCodingMachine\GraphQLite\Annotations\Query; |
| 26 | +use TheCodingMachine\Graphqlite\Bundle\Mappers\ContainerFetcherTypeMapper; |
| 27 | +use TheCodingMachine\Graphqlite\Bundle\QueryProviders\ControllerQueryProvider; |
| 28 | +use TheCodingMachine\GraphQLite\FieldsBuilderFactory; |
| 29 | +use TheCodingMachine\GraphQLite\InputTypeGenerator; |
| 30 | +use TheCodingMachine\GraphQLite\InputTypeUtils; |
| 31 | +use TheCodingMachine\GraphQLite\Mappers\GlobTypeMapper; |
| 32 | +use TheCodingMachine\GraphQLite\Mappers\RecursiveTypeMapperInterface; |
| 33 | +use TheCodingMachine\GraphQLite\Mappers\StaticTypeMapper; |
| 34 | +use TheCodingMachine\GraphQLite\NamingStrategy; |
| 35 | +use TheCodingMachine\GraphQLite\TypeGenerator; |
| 36 | +use TheCodingMachine\GraphQLite\Types\MutableObjectType; |
| 37 | +use TheCodingMachine\GraphQLite\Types\ResolvableInputObjectType; |
38 | 38 |
|
39 | 39 | /** |
40 | 40 | * Detects controllers and types automatically and tag them. |
41 | 41 | */ |
42 | | -class GraphqlControllersCompilerPass implements CompilerPassInterface |
| 42 | +class GraphqliteCompilerPass implements CompilerPassInterface |
43 | 43 | { |
44 | 44 | /** |
45 | 45 | * @var AnnotationReader |
@@ -71,8 +71,8 @@ public function process(ContainerBuilder $container) |
71 | 71 | //$inputTypeUtils = new InputTypeUtils($reader, $namingStrategy); |
72 | 72 |
|
73 | 73 | // Let's scan the whole container and tag the services that belong to the namespace we want to inspect. |
74 | | - $controllersNamespaces = $container->getParameter('graphql_controllers.namespace.controllers'); |
75 | | - $typesNamespaces = $container->getParameter('graphql_controllers.namespace.types'); |
| 74 | + $controllersNamespaces = $container->getParameter('graphqlite.namespace.controllers'); |
| 75 | + $typesNamespaces = $container->getParameter('graphqlite.namespace.types'); |
76 | 76 |
|
77 | 77 | foreach ($container->getDefinitions() as $id => $definition) { |
78 | 78 | if ($definition->isAbstract() || $definition->getClass() === null) { |
|
0 commit comments