Skip to content

Commit 30eccf2

Browse files
committed
Rename 'Graphqlite' to 'GraphQLite'
1 parent ae2c741 commit 30eccf2

15 files changed

+29
-29
lines changed

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-symfony-validator-bridge/badge.svg?branch=master&service=github)](https://coveralls.io/github/thecodingmachine/graphqlite-symfony-validator-bridge?branch=master)
66

77

8-
# Graphqlite - Symfony validator bridge
8+
# GraphQLite - Symfony validator bridge
99

1010
A bridge between GraphQLite and the Symfony Validator component
1111

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@
3838
},
3939
"autoload" : {
4040
"psr-4" : {
41-
"TheCodingMachine\\Graphqlite\\Validator\\" : "src/"
41+
"TheCodingMachine\\GraphQLite\\Validator\\" : "src/"
4242
}
4343
},
4444
"autoload-dev" : {
4545
"psr-4" : {
46-
"TheCodingMachine\\Graphqlite\\Validator\\" : "tests/"
46+
"TheCodingMachine\\GraphQLite\\Validator\\" : "tests/"
4747
}
4848
},
4949
"extra": {

src/Annotations/Assertion.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\Validator\Annotations;
5+
namespace TheCodingMachine\GraphQLite\Validator\Annotations;
66

77
use BadMethodCallException;
88
use Symfony\Component\Validator\Constraint;

src/ConstraintViolationException.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\Validator;
5+
namespace TheCodingMachine\GraphQLite\Validator;
66

77
use Exception;
88
use Symfony\Component\Validator\ConstraintViolationInterface;

src/Mappers/Parameters/AssertParameterMiddleware.php

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

33
declare(strict_types=1);
44

5-
namespace TheCodingMachine\Graphqlite\Validator\Mappers\Parameters;
5+
namespace TheCodingMachine\GraphQLite\Validator\Mappers\Parameters;
66

77
use phpDocumentor\Reflection\DocBlock;
88
use phpDocumentor\Reflection\Type;
@@ -15,7 +15,7 @@
1515
use TheCodingMachine\GraphQLite\Mappers\Parameters\ParameterMiddlewareInterface;
1616
use TheCodingMachine\GraphQLite\Parameters\InputTypeParameterInterface;
1717
use TheCodingMachine\GraphQLite\Parameters\ParameterInterface;
18-
use TheCodingMachine\Graphqlite\Validator\Annotations\Assertion;
18+
use TheCodingMachine\GraphQLite\Validator\Annotations\Assertion;
1919
use function array_map;
2020
use function array_merge;
2121

src/Mappers/Parameters/InvalidAssertionAnnotationException.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\Validator\Mappers\Parameters;
5+
namespace TheCodingMachine\GraphQLite\Validator\Mappers\Parameters;
66

77
use Exception;
88
use ReflectionParameter;

src/Mappers/Parameters/ParameterValidator.php

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

33
declare(strict_types=1);
44

5-
namespace TheCodingMachine\Graphqlite\Validator\Mappers\Parameters;
5+
namespace TheCodingMachine\GraphQLite\Validator\Mappers\Parameters;
66

77
use GraphQL\Type\Definition\InputType;
88
use GraphQL\Type\Definition\ResolveInfo;
@@ -12,7 +12,7 @@
1212
use Symfony\Component\Validator\Validator\ValidatorInterface;
1313
use Symfony\Contracts\Translation\TranslatorInterface;
1414
use TheCodingMachine\GraphQLite\Parameters\InputTypeParameterInterface;
15-
use TheCodingMachine\Graphqlite\Validator\ValidationFailedException;
15+
use TheCodingMachine\GraphQLite\Validator\ValidationFailedException;
1616

1717
class ParameterValidator implements InputTypeParameterInterface
1818
{

src/ValidationFailedException.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\Validator;
5+
namespace TheCodingMachine\GraphQLite\Validator;
66

77
use GraphQL\Error\ClientAware;
88
use InvalidArgumentException;

tests/Annotations/AssertionTest.php

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

3-
namespace TheCodingMachine\Graphqlite\Validator\Annotations;
3+
namespace TheCodingMachine\GraphQLite\Validator\Annotations;
44

55
use BadMethodCallException;
66
use PHPUnit\Framework\TestCase;

tests/ConstraintValidationExceptionTest.php

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

3-
namespace TheCodingMachine\Graphqlite\Validator;
3+
namespace TheCodingMachine\GraphQLite\Validator;
44

55
use PHPUnit\Framework\TestCase;
66
use Symfony\Component\Validator\ConstraintViolation;

tests/Fixtures/Controllers/UserController.php

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

33

4-
namespace TheCodingMachine\Graphqlite\Validator\Fixtures\Controllers;
4+
namespace TheCodingMachine\GraphQLite\Validator\Fixtures\Controllers;
55

66

77
use Symfony\Component\Validator\Constraints as Assert;
88
use Symfony\Component\Validator\Validator\ValidatorInterface;
99
use TheCodingMachine\GraphQLite\Annotations\Mutation;
1010
use TheCodingMachine\GraphQLite\Annotations\Query;
11-
use TheCodingMachine\Graphqlite\Validator\Fixtures\Types\User;
12-
use TheCodingMachine\Graphqlite\Validator\Annotations\Assertion;
13-
use TheCodingMachine\Graphqlite\Validator\ValidationFailedException;
11+
use TheCodingMachine\GraphQLite\Validator\Fixtures\Types\User;
12+
use TheCodingMachine\GraphQLite\Validator\Annotations\Assertion;
13+
use TheCodingMachine\GraphQLite\Validator\ValidationFailedException;
1414

1515
class UserController
1616
{

tests/Fixtures/InvalidControllers/InvalidController.php

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

33

4-
namespace TheCodingMachine\Graphqlite\Validator\Fixtures\InvalidControllers;
4+
namespace TheCodingMachine\GraphQLite\Validator\Fixtures\InvalidControllers;
55

66

77
use GraphQL\Type\Definition\ResolveInfo;
88
use Symfony\Component\Validator\Constraints as Assert;
99
use TheCodingMachine\GraphQLite\Annotations\Query;
10-
use TheCodingMachine\Graphqlite\Validator\Annotations\Assertion;
10+
use TheCodingMachine\GraphQLite\Validator\Annotations\Assertion;
1111

1212
class InvalidController
1313
{

tests/Fixtures/Types/User.php

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

33

4-
namespace TheCodingMachine\Graphqlite\Validator\Fixtures\Types;
4+
namespace TheCodingMachine\GraphQLite\Validator\Fixtures\Types;
55
use Symfony\Component\Validator\Constraints as Assert;
66
use TheCodingMachine\GraphQLite\Annotations\Field;
77
use TheCodingMachine\GraphQLite\Annotations\Type;

tests/IntegrationTest.php

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

33

4-
namespace TheCodingMachine\Graphqlite\Validator;
4+
namespace TheCodingMachine\GraphQLite\Validator;
55

66

77
use Doctrine\Common\Annotations\AnnotationReader;
@@ -24,9 +24,9 @@
2424
use TheCodingMachine\GraphQLite\Containers\EmptyContainer;
2525
use TheCodingMachine\GraphQLite\Exceptions\WebonyxErrorHandler;
2626
use TheCodingMachine\GraphQLite\SchemaFactory;
27-
use TheCodingMachine\Graphqlite\Validator\Fixtures\Controllers\UserController;
28-
use TheCodingMachine\Graphqlite\Validator\Mappers\Parameters\AssertParameterMiddleware;
29-
use TheCodingMachine\Graphqlite\Validator\Mappers\Parameters\InvalidAssertionAnnotationException;
27+
use TheCodingMachine\GraphQLite\Validator\Fixtures\Controllers\UserController;
28+
use TheCodingMachine\GraphQLite\Validator\Mappers\Parameters\AssertParameterMiddleware;
29+
use TheCodingMachine\GraphQLite\Validator\Mappers\Parameters\InvalidAssertionAnnotationException;
3030
use function var_dump;
3131
use function var_export;
3232
use const JSON_PRETTY_PRINT;
@@ -51,8 +51,8 @@ private function getSchemaFactory(): SchemaFactory
5151
]);
5252

5353
$schemaFactory = new SchemaFactory(new Psr16Cache(new ArrayAdapter()), new BasicAutoWiringContainer($container));
54-
$schemaFactory->addControllerNamespace('TheCodingMachine\Graphqlite\Validator\Fixtures\Controllers');
55-
$schemaFactory->addTypeNamespace('TheCodingMachine\Graphqlite\Validator\Fixtures\Types');
54+
$schemaFactory->addControllerNamespace('TheCodingMachine\GraphQLite\Validator\Fixtures\Controllers');
55+
$schemaFactory->addTypeNamespace('TheCodingMachine\GraphQLite\Validator\Fixtures\Types');
5656
$schemaFactory->addParameterMiddleware(new AssertParameterMiddleware(new ContainerConstraintValidatorFactory($container), $container->get(ValidatorInterface::class), $container->get(TranslatorInterface::class)));
5757

5858
return $schemaFactory;
@@ -162,11 +162,11 @@ public function testEndToEndAssert(): void
162162
public function testException(): void
163163
{
164164
$schemaFactory = $this->getSchemaFactory();
165-
$schemaFactory->addControllerNamespace('TheCodingMachine\Graphqlite\Validator\Fixtures\InvalidControllers');
165+
$schemaFactory->addControllerNamespace('TheCodingMachine\GraphQLite\Validator\Fixtures\InvalidControllers');
166166
$schema = $schemaFactory->createSchema();
167167

168168
$this->expectException(InvalidAssertionAnnotationException::class);
169-
$this->expectExceptionMessage('In method TheCodingMachine\Graphqlite\Validator\Fixtures\InvalidControllers\InvalidController::invalid(), the @Assert annotation is targeting parameter "$resolveInfo". You cannot target this parameter because it is not part of the GraphQL Input type. You can only assert parameters coming from the end user.');
169+
$this->expectExceptionMessage('In method TheCodingMachine\GraphQLite\Validator\Fixtures\InvalidControllers\InvalidController::invalid(), the @Assert annotation is targeting parameter "$resolveInfo". You cannot target this parameter because it is not part of the GraphQL Input type. You can only assert parameters coming from the end user.');
170170
$schema->validate();
171171
}
172172
}

tests/ValidationFailedExceptionTest.php

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

3-
namespace TheCodingMachine\Graphqlite\Validator;
3+
namespace TheCodingMachine\GraphQLite\Validator;
44

55
use PHPUnit\Framework\TestCase;
66
use Symfony\Component\Validator\ConstraintViolation;

0 commit comments

Comments
 (0)