Skip to content

Commit b5230f7

Browse files
authored
Updated namespace in docs according changes in the Symfony bundle (#406)
* Updated namespace according changes in the Symfony bundle * Suppress unmatched ignored errors reporting by phpstan
1 parent 1289ccf commit b5230f7

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

phpstan.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ parameters:
66
- src
77
level: max
88
checkGenericClassInNonGenericObjectType: false
9+
reportUnmatchedIgnoredErrors: false
910
ignoreErrors:
1011
- "#PHPDoc tag \\@throws with type Psr\\\\Container\\\\ContainerExceptionInterface is not subtype of Throwable#"
1112
- "#Parameter .* of class ReflectionMethod constructor expects string(\\|null)?, object\\|string given.#"

website/docs/symfony-bundle.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Now, enable the "graphql/" route by editing the `config/routes.yaml` file:
6666
```yaml title="config/routes.yaml"
6767
# Add these 2 lines to config/routes.yaml
6868
graphqlite_bundle:
69-
resource: '@GraphqliteBundle/Resources/config/routes.xml'
69+
resource: '@GraphQLiteBundle/Resources/config/routes.xml'
7070
```
7171
7272
Last but not least, create the configuration file at `config/packages/graphqlite.yaml`:

website/docs/validation.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ using the `Validator` object.
4444

4545
```php title="UserController.php"
4646
use Symfony\Component\Validator\Validator\ValidatorInterface;
47-
use TheCodingMachine\Graphqlite\Validator\ValidationFailedException
47+
use TheCodingMachine\GraphQLite\Validator\ValidationFailedException
4848

4949
class UserController
5050
{
@@ -77,7 +77,7 @@ class UserController
7777

7878
```php title="UserController.php"
7979
use Symfony\Component\Validator\Validator\ValidatorInterface;
80-
use TheCodingMachine\Graphqlite\Validator\ValidationFailedException
80+
use TheCodingMachine\GraphQLite\Validator\ValidationFailedException
8181

8282
class UserController
8383
{
@@ -212,7 +212,7 @@ Use the `@Assertion` annotation to validate directly the user input.
212212

213213
```php
214214
use Symfony\Component\Validator\Constraints as Assert;
215-
use TheCodingMachine\Graphqlite\Validator\Annotations\Assertion;
215+
use TheCodingMachine\GraphQLite\Validator\Annotations\Assertion;
216216

217217
/**
218218
* @Query

website/versioned_docs/version-5.0/symfony-bundle.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Now, enable the "graphql/" route by editing the `config/routes.yaml` file:
6666
```yaml title="config/routes.yaml"
6767
# Add these 2 lines to config/routes.yaml
6868
graphqlite_bundle:
69-
resource: '@GraphqliteBundle/Resources/config/routes.xml'
69+
resource: '@GraphQLiteBundle/Resources/config/routes.xml'
7070
```
7171
7272
Last but not least, create the configuration file at `config/packages/graphqlite.yaml`:

website/versioned_docs/version-5.0/validation.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ using the `Validator` object.
4444

4545
```php title="UserController.php"
4646
use Symfony\Component\Validator\Validator\ValidatorInterface;
47-
use TheCodingMachine\Graphqlite\Validator\ValidationFailedException
47+
use TheCodingMachine\GraphQLite\Validator\ValidationFailedException
4848

4949
class UserController
5050
{
@@ -77,7 +77,7 @@ class UserController
7777

7878
```php title="UserController.php"
7979
use Symfony\Component\Validator\Validator\ValidatorInterface;
80-
use TheCodingMachine\Graphqlite\Validator\ValidationFailedException
80+
use TheCodingMachine\GraphQLite\Validator\ValidationFailedException
8181

8282
class UserController
8383
{
@@ -212,7 +212,7 @@ Use the `@Assertion` annotation to validate directly the user input.
212212

213213
```php
214214
use Symfony\Component\Validator\Constraints as Assert;
215-
use TheCodingMachine\Graphqlite\Validator\Annotations\Assertion;
215+
use TheCodingMachine\GraphQLite\Validator\Annotations\Assertion;
216216

217217
/**
218218
* @Query

0 commit comments

Comments
 (0)