|
1 | 1 | <?php
|
2 | 2 |
|
3 | 3 |
|
4 |
| -namespace TheCodingMachine\Graphqlite\Bundle\DependencyInjection; |
| 4 | +namespace TheCodingMachine\GraphQLite\Bundle\DependencyInjection; |
5 | 5 |
|
6 | 6 | use GraphQL\Server\ServerConfig;
|
7 | 7 | use GraphQL\Validator\Rules\DisableIntrospection;
|
|
11 | 11 | use Symfony\Component\Cache\Adapter\ApcuAdapter;
|
12 | 12 | use Symfony\Component\Cache\Adapter\PhpFilesAdapter;
|
13 | 13 | use Symfony\Component\Cache\Psr16Cache;
|
14 |
| -use TheCodingMachine\GraphQLite\Mappers\StaticClassListTypeMapper; |
15 | 14 | use TheCodingMachine\GraphQLite\Mappers\StaticClassListTypeMapperFactory;
|
16 | 15 | use Webmozart\Assert\Assert;
|
17 | 16 | use function class_exists;
|
18 |
| -use Doctrine\Common\Annotations\AnnotationException; |
19 | 17 | use Doctrine\Common\Annotations\AnnotationReader as DoctrineAnnotationReader;
|
20 | 18 | use Doctrine\Common\Annotations\AnnotationRegistry;
|
21 | 19 | use Doctrine\Common\Annotations\CachedReader;
|
22 | 20 | use Doctrine\Common\Cache\ApcuCache;
|
23 |
| -use function error_log; |
24 | 21 | use Mouf\Composer\ClassNameMapper;
|
25 | 22 | use Psr\SimpleCache\CacheInterface;
|
26 | 23 | use ReflectionParameter;
|
27 |
| -use Symfony\Component\Cache\Simple\ApcuCache as SymfonyApcuCache; |
28 |
| -use Symfony\Component\Cache\Simple\PhpFilesCache as SymfonyPhpFilesCache; |
29 | 24 | use function filter_var;
|
30 | 25 | use function function_exists;
|
31 |
| -use GraphQL\Type\Definition\InputObjectType; |
32 |
| -use GraphQL\Type\Definition\ObjectType; |
33 |
| -use Psr\Container\ContainerInterface; |
34 | 26 | use ReflectionClass;
|
35 | 27 | use ReflectionMethod;
|
36 | 28 | use function ini_get;
|
37 | 29 | use function interface_exists;
|
38 |
| -use function php_sapi_name; |
39 |
| -use function str_replace; |
40 | 30 | use function strpos;
|
41 | 31 | use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
|
42 | 32 | use Symfony\Component\DependencyInjection\ContainerBuilder;
|
43 | 33 | use Symfony\Component\DependencyInjection\Definition;
|
44 | 34 | use Symfony\Component\DependencyInjection\Reference;
|
45 |
| -use Symfony\Component\EventDispatcher\EventDispatcherInterface; |
46 | 35 | use Symfony\Component\HttpFoundation\Session\SessionInterface;
|
47 | 36 | use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
|
48 | 37 | use Symfony\Component\Security\Core\Encoder\UserPasswordEncoderInterface;
|
49 | 38 | use Symfony\Component\Security\Core\User\UserInterface;
|
50 |
| -use Symfony\Component\Security\Core\User\UserProviderInterface; |
51 | 39 | use TheCodingMachine\CacheUtils\ClassBoundCache;
|
52 | 40 | use TheCodingMachine\CacheUtils\ClassBoundCacheContract;
|
53 | 41 | use TheCodingMachine\CacheUtils\ClassBoundCacheContractInterface;
|
|
56 | 44 | use TheCodingMachine\ClassExplorer\Glob\GlobClassExplorer;
|
57 | 45 | use TheCodingMachine\GraphQLite\AggregateControllerQueryProviderFactory;
|
58 | 46 | use TheCodingMachine\GraphQLite\AnnotationReader;
|
59 |
| -use TheCodingMachine\GraphQLite\Annotations\AbstractRequest; |
60 | 47 | use TheCodingMachine\GraphQLite\Annotations\Autowire;
|
61 | 48 | use TheCodingMachine\GraphQLite\Annotations\Field;
|
62 | 49 | use TheCodingMachine\GraphQLite\Annotations\Mutation;
|
63 |
| -use TheCodingMachine\GraphQLite\Annotations\Parameter; |
64 | 50 | use TheCodingMachine\GraphQLite\Annotations\Query;
|
65 |
| -use TheCodingMachine\Graphqlite\Bundle\Controller\GraphQL\LoginController; |
66 |
| -use TheCodingMachine\Graphqlite\Bundle\Controller\GraphQL\MeController; |
67 |
| -use TheCodingMachine\GraphQLite\FieldsBuilder; |
68 |
| -use TheCodingMachine\GraphQLite\FieldsBuilderFactory; |
| 51 | +use TheCodingMachine\GraphQLite\Bundle\Controller\GraphQL\LoginController; |
| 52 | +use TheCodingMachine\GraphQLite\Bundle\Controller\GraphQL\MeController; |
69 | 53 | use TheCodingMachine\GraphQLite\GraphQLRuntimeException as GraphQLException;
|
70 |
| -use TheCodingMachine\GraphQLite\InputTypeGenerator; |
71 |
| -use TheCodingMachine\GraphQLite\InputTypeUtils; |
72 |
| -use TheCodingMachine\GraphQLite\Mappers\CompositeTypeMapper; |
73 |
| -use TheCodingMachine\GraphQLite\Mappers\GlobTypeMapper; |
74 |
| -use TheCodingMachine\GraphQLite\Mappers\RecursiveTypeMapperInterface; |
75 |
| -use TheCodingMachine\GraphQLite\Mappers\Root\CompositeRootTypeMapper; |
76 | 54 | use TheCodingMachine\GraphQLite\Mappers\StaticTypeMapper;
|
77 |
| -use TheCodingMachine\GraphQLite\NamingStrategy; |
78 | 55 | use TheCodingMachine\GraphQLite\SchemaFactory;
|
79 |
| -use TheCodingMachine\GraphQLite\TypeGenerator; |
80 |
| -use TheCodingMachine\GraphQLite\Types\MutableObjectType; |
81 |
| -use TheCodingMachine\GraphQLite\Types\ResolvableInputObjectType; |
82 |
| -use function var_dump; |
83 |
| -use TheCodingMachine\Graphqlite\Bundle\Types\SymfonyUserInterfaceType; |
| 56 | +use TheCodingMachine\GraphQLite\Bundle\Types\SymfonyUserInterfaceType; |
84 | 57 |
|
85 | 58 | /**
|
86 | 59 | * Detects controllers and types automatically and tag them.
|
87 | 60 | */
|
88 |
| -class GraphqliteCompilerPass implements CompilerPassInterface |
| 61 | +class GraphQLiteCompilerPass implements CompilerPassInterface |
89 | 62 | {
|
90 | 63 | /**
|
91 | 64 | * @var AnnotationReader
|
|
0 commit comments