Skip to content

Commit 639cc51

Browse files
committed
Renamed "Graphqlite" occurrences to "GraphQLite"
1 parent cf1a13b commit 639cc51

39 files changed

+133
-196
lines changed

Command/DumpSchemaCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace TheCodingMachine\Graphqlite\Bundle\Command;
5+
namespace TheCodingMachine\GraphQLite\Bundle\Command;
66

77
use GraphQL\Type\Definition\TypeWithFields;
88
use GraphQL\Utils\SchemaPrinter;

Context/SymfonyGraphQLContext.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33

4-
namespace TheCodingMachine\Graphqlite\Bundle\Context;
4+
namespace TheCodingMachine\GraphQLite\Bundle\Context;
55

66

77
use Symfony\Component\HttpFoundation\Request;
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace TheCodingMachine\Graphqlite\Bundle\Context;
3+
namespace TheCodingMachine\GraphQLite\Bundle\Context;
44

55
use Symfony\Component\HttpFoundation\Request;
66

@@ -10,4 +10,4 @@ interface SymfonyRequestContextInterface
1010
* @return Request
1111
*/
1212
public function getRequest(): Request;
13-
}
13+
}

Controller/GraphQL/InvalidUserPasswordException.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33

4-
namespace TheCodingMachine\Graphqlite\Bundle\Controller\GraphQL;
4+
namespace TheCodingMachine\GraphQLite\Bundle\Controller\GraphQL;
55

66
use Exception;
77
use TheCodingMachine\GraphQLite\Exceptions\GraphQLException;

Controller/GraphQL/LoginController.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
namespace TheCodingMachine\Graphqlite\Bundle\Controller\GraphQL;
2+
namespace TheCodingMachine\GraphQLite\Bundle\Controller\GraphQL;
33

44

55
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
@@ -13,7 +13,6 @@
1313
use Symfony\Component\Security\Core\User\UserProviderInterface;
1414
use Symfony\Component\Security\Http\Event\InteractiveLoginEvent;
1515
use TheCodingMachine\GraphQLite\Annotations\Mutation;
16-
use TheCodingMachine\GraphQLite\Annotations\Query;
1716

1817
class LoginController
1918
{

Controller/GraphQL/MeController.php

+1-11
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,10 @@
11
<?php
2-
namespace TheCodingMachine\Graphqlite\Bundle\Controller\GraphQL;
2+
namespace TheCodingMachine\GraphQLite\Bundle\Controller\GraphQL;
33

44

5-
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
6-
use Symfony\Component\HttpFoundation\Request;
7-
use Symfony\Component\HttpFoundation\Session\SessionInterface;
85
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
9-
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
10-
use Symfony\Component\Security\Core\Encoder\UserPasswordEncoderInterface;
11-
use Symfony\Component\Security\Core\Exception\UsernameNotFoundException;
126
use Symfony\Component\Security\Core\User\UserInterface;
13-
use Symfony\Component\Security\Core\User\UserProviderInterface;
14-
use Symfony\Component\Security\Http\Event\InteractiveLoginEvent;
15-
use TheCodingMachine\GraphQLite\Annotations\Mutation;
167
use TheCodingMachine\GraphQLite\Annotations\Query;
17-
use TheCodingMachine\Graphqlite\Bundle\Types\BasicUser;
188

199
class MeController
2010
{

Controller/GraphqliteController.php Controller/GraphQLiteController.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33

4-
namespace TheCodingMachine\Graphqlite\Bundle\Controller;
4+
namespace TheCodingMachine\GraphQLite\Bundle\Controller;
55

66

77
use Laminas\Diactoros\ResponseFactory;
@@ -25,12 +25,12 @@
2525
use Symfony\Component\HttpFoundation\Response;
2626
use Symfony\Component\Routing\Route;
2727
use Symfony\Component\Routing\RouteCollection;
28-
use TheCodingMachine\Graphqlite\Bundle\Context\SymfonyGraphQLContext;
28+
use TheCodingMachine\GraphQLite\Bundle\Context\SymfonyGraphQLContext;
2929

3030
/**
3131
* Listens to every single request and forward Graphql requests to Graphql Webonix standardServer.
3232
*/
33-
class GraphqliteController
33+
class GraphQLiteController
3434
{
3535
/**
3636
* @var HttpMessageFactoryInterface

DependencyInjection/Configuration.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33

4-
namespace TheCodingMachine\Graphqlite\Bundle\DependencyInjection;
4+
namespace TheCodingMachine\GraphQLite\Bundle\DependencyInjection;
55

66
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
77
use Symfony\Component\Config\Definition\ConfigurationInterface;

DependencyInjection/GraphqliteCompilerPass.php DependencyInjection/GraphQLiteCompilerPass.php

+5-32
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33

4-
namespace TheCodingMachine\Graphqlite\Bundle\DependencyInjection;
4+
namespace TheCodingMachine\GraphQLite\Bundle\DependencyInjection;
55

66
use GraphQL\Server\ServerConfig;
77
use GraphQL\Validator\Rules\DisableIntrospection;
@@ -11,43 +11,31 @@
1111
use Symfony\Component\Cache\Adapter\ApcuAdapter;
1212
use Symfony\Component\Cache\Adapter\PhpFilesAdapter;
1313
use Symfony\Component\Cache\Psr16Cache;
14-
use TheCodingMachine\GraphQLite\Mappers\StaticClassListTypeMapper;
1514
use TheCodingMachine\GraphQLite\Mappers\StaticClassListTypeMapperFactory;
1615
use Webmozart\Assert\Assert;
1716
use function class_exists;
18-
use Doctrine\Common\Annotations\AnnotationException;
1917
use Doctrine\Common\Annotations\AnnotationReader as DoctrineAnnotationReader;
2018
use Doctrine\Common\Annotations\AnnotationRegistry;
2119
use Doctrine\Common\Annotations\CachedReader;
2220
use Doctrine\Common\Cache\ApcuCache;
23-
use function error_log;
2421
use Mouf\Composer\ClassNameMapper;
2522
use Psr\SimpleCache\CacheInterface;
2623
use ReflectionParameter;
27-
use Symfony\Component\Cache\Simple\ApcuCache as SymfonyApcuCache;
28-
use Symfony\Component\Cache\Simple\PhpFilesCache as SymfonyPhpFilesCache;
2924
use function filter_var;
3025
use function function_exists;
31-
use GraphQL\Type\Definition\InputObjectType;
32-
use GraphQL\Type\Definition\ObjectType;
33-
use Psr\Container\ContainerInterface;
3426
use ReflectionClass;
3527
use ReflectionMethod;
3628
use function ini_get;
3729
use function interface_exists;
38-
use function php_sapi_name;
39-
use function str_replace;
4030
use function strpos;
4131
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
4232
use Symfony\Component\DependencyInjection\ContainerBuilder;
4333
use Symfony\Component\DependencyInjection\Definition;
4434
use Symfony\Component\DependencyInjection\Reference;
45-
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
4635
use Symfony\Component\HttpFoundation\Session\SessionInterface;
4736
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
4837
use Symfony\Component\Security\Core\Encoder\UserPasswordEncoderInterface;
4938
use Symfony\Component\Security\Core\User\UserInterface;
50-
use Symfony\Component\Security\Core\User\UserProviderInterface;
5139
use TheCodingMachine\CacheUtils\ClassBoundCache;
5240
use TheCodingMachine\CacheUtils\ClassBoundCacheContract;
5341
use TheCodingMachine\CacheUtils\ClassBoundCacheContractInterface;
@@ -56,36 +44,21 @@
5644
use TheCodingMachine\ClassExplorer\Glob\GlobClassExplorer;
5745
use TheCodingMachine\GraphQLite\AggregateControllerQueryProviderFactory;
5846
use TheCodingMachine\GraphQLite\AnnotationReader;
59-
use TheCodingMachine\GraphQLite\Annotations\AbstractRequest;
6047
use TheCodingMachine\GraphQLite\Annotations\Autowire;
6148
use TheCodingMachine\GraphQLite\Annotations\Field;
6249
use TheCodingMachine\GraphQLite\Annotations\Mutation;
63-
use TheCodingMachine\GraphQLite\Annotations\Parameter;
6450
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;
6953
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;
7654
use TheCodingMachine\GraphQLite\Mappers\StaticTypeMapper;
77-
use TheCodingMachine\GraphQLite\NamingStrategy;
7855
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;
8457

8558
/**
8659
* Detects controllers and types automatically and tag them.
8760
*/
88-
class GraphqliteCompilerPass implements CompilerPassInterface
61+
class GraphQLiteCompilerPass implements CompilerPassInterface
8962
{
9063
/**
9164
* @var AnnotationReader

DependencyInjection/GraphqliteExtension.php DependencyInjection/GraphQLiteExtension.php

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33

4-
namespace TheCodingMachine\Graphqlite\Bundle\DependencyInjection;
4+
namespace TheCodingMachine\GraphQLite\Bundle\DependencyInjection;
55

66

77
use GraphQL\Error\DebugFlag;
@@ -15,9 +15,14 @@
1515
use Symfony\Component\DependencyInjection\Extension\Extension;
1616
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
1717

18-
class GraphqliteExtension extends Extension
18+
class GraphQLiteExtension extends Extension
1919
{
2020

21+
public function getAlias()
22+
{
23+
return 'graphqlite';
24+
}
25+
2126
/**
2227
* Loads a specific configuration.
2328
*

DependencyInjection/OverblogGraphiQLEndpointWiringPass.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?php
22

3-
namespace TheCodingMachine\Graphqlite\Bundle\DependencyInjection;
3+
namespace TheCodingMachine\GraphQLite\Bundle\DependencyInjection;
44

55
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
66
use Symfony\Component\DependencyInjection\ContainerBuilder;
77
use Symfony\Component\DependencyInjection\Definition;
88
use Symfony\Component\DependencyInjection\Reference;
9-
use TheCodingMachine\Graphqlite\Bundle\GraphiQL\EndpointResolver;
9+
use TheCodingMachine\GraphQLite\Bundle\GraphiQL\EndpointResolver;
1010

1111
final class OverblogGraphiQLEndpointWiringPass implements CompilerPassInterface
1212
{

GraphQLiteBundle.php

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?php
2+
3+
4+
namespace TheCodingMachine\GraphQLite\Bundle;
5+
6+
use TheCodingMachine\GraphQLite\Bundle\DependencyInjection\GraphQLiteExtension;
7+
use TheCodingMachine\GraphQLite\Bundle\DependencyInjection\OverblogGraphiQLEndpointWiringPass;
8+
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
9+
use Symfony\Component\DependencyInjection\ContainerBuilder;
10+
use Symfony\Component\HttpKernel\Bundle\Bundle;
11+
use TheCodingMachine\GraphQLite\Bundle\DependencyInjection\GraphQLiteCompilerPass;
12+
13+
class GraphQLiteBundle extends Bundle
14+
{
15+
public function build(ContainerBuilder $container): void
16+
{
17+
parent::build($container);
18+
19+
$container->addCompilerPass(new GraphQLiteCompilerPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION);
20+
$container->addCompilerPass(new OverblogGraphiQLEndpointWiringPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, -1);
21+
}
22+
23+
public function getContainerExtension()
24+
{
25+
if (null === $this->extension) {
26+
$this->extension = new GraphQLiteExtension();
27+
}
28+
29+
return $this->extension;
30+
}
31+
}

GraphiQL/EndpointResolver.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace TheCodingMachine\Graphqlite\Bundle\GraphiQL;
3+
namespace TheCodingMachine\GraphQLite\Bundle\GraphiQL;
44

55
use Overblog\GraphiQLBundle\Config\GraphiQLControllerEndpoint;
66
use Overblog\GraphiQLBundle\Config\GraphQLEndpoint\GraphQLEndpointInvalidSchemaException;

GraphqliteBundle.php

-21
This file was deleted.

Mappers/RequestParameter.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

33

4-
namespace TheCodingMachine\Graphqlite\Bundle\Mappers;
4+
namespace TheCodingMachine\GraphQLite\Bundle\Mappers;
55

66

77
use GraphQL\Type\Definition\ResolveInfo;
8-
use TheCodingMachine\Graphqlite\Bundle\Context\SymfonyRequestContextInterface;
8+
use TheCodingMachine\GraphQLite\Bundle\Context\SymfonyRequestContextInterface;
99
use TheCodingMachine\GraphQLite\GraphQLRuntimeException as GraphQLException;
1010
use TheCodingMachine\GraphQLite\Parameters\ParameterInterface;
1111

Mappers/RequestParameterMiddleware.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33

4-
namespace TheCodingMachine\Graphqlite\Bundle\Mappers;
4+
namespace TheCodingMachine\GraphQLite\Bundle\Mappers;
55

66

77
use phpDocumentor\Reflection\DocBlock;

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![Coverage Status](https://coveralls.io/repos/thecodingmachine/graphqlite-bundle/badge.svg?branch=master&service=github)](https://coveralls.io/github/thecodingmachine/graphqlite-bundle?branch=master)
66

77

8-
# Graphqlite bundle
8+
# GraphQLite bundle
99

1010
Symfony 4 bundle for the thecodingmachine/graphqlite package.
1111

0 commit comments

Comments
 (0)