Skip to content

Commit

Permalink
Updated namespace in docs according changes in the Symfony bundle (#406)
Browse files Browse the repository at this point in the history
* Updated namespace according changes in the Symfony bundle

* Suppress unmatched ignored errors reporting by phpstan
  • Loading branch information
devmaslov authored Nov 9, 2021
1 parent 1289ccf commit b5230f7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ parameters:
- src
level: max
checkGenericClassInNonGenericObjectType: false
reportUnmatchedIgnoredErrors: false
ignoreErrors:
- "#PHPDoc tag \\@throws with type Psr\\\\Container\\\\ContainerExceptionInterface is not subtype of Throwable#"
- "#Parameter .* of class ReflectionMethod constructor expects string(\\|null)?, object\\|string given.#"
Expand Down
2 changes: 1 addition & 1 deletion website/docs/symfony-bundle.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Now, enable the "graphql/" route by editing the `config/routes.yaml` file:
```yaml title="config/routes.yaml"
# Add these 2 lines to config/routes.yaml
graphqlite_bundle:
resource: '@GraphqliteBundle/Resources/config/routes.xml'
resource: '@GraphQLiteBundle/Resources/config/routes.xml'
```
Last but not least, create the configuration file at `config/packages/graphqlite.yaml`:
Expand Down
6 changes: 3 additions & 3 deletions website/docs/validation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ using the `Validator` object.

```php title="UserController.php"
use Symfony\Component\Validator\Validator\ValidatorInterface;
use TheCodingMachine\Graphqlite\Validator\ValidationFailedException
use TheCodingMachine\GraphQLite\Validator\ValidationFailedException

class UserController
{
Expand Down Expand Up @@ -77,7 +77,7 @@ class UserController

```php title="UserController.php"
use Symfony\Component\Validator\Validator\ValidatorInterface;
use TheCodingMachine\Graphqlite\Validator\ValidationFailedException
use TheCodingMachine\GraphQLite\Validator\ValidationFailedException

class UserController
{
Expand Down Expand Up @@ -212,7 +212,7 @@ Use the `@Assertion` annotation to validate directly the user input.

```php
use Symfony\Component\Validator\Constraints as Assert;
use TheCodingMachine\Graphqlite\Validator\Annotations\Assertion;
use TheCodingMachine\GraphQLite\Validator\Annotations\Assertion;

/**
* @Query
Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-5.0/symfony-bundle.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Now, enable the "graphql/" route by editing the `config/routes.yaml` file:
```yaml title="config/routes.yaml"
# Add these 2 lines to config/routes.yaml
graphqlite_bundle:
resource: '@GraphqliteBundle/Resources/config/routes.xml'
resource: '@GraphQLiteBundle/Resources/config/routes.xml'
```
Last but not least, create the configuration file at `config/packages/graphqlite.yaml`:
Expand Down
6 changes: 3 additions & 3 deletions website/versioned_docs/version-5.0/validation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ using the `Validator` object.

```php title="UserController.php"
use Symfony\Component\Validator\Validator\ValidatorInterface;
use TheCodingMachine\Graphqlite\Validator\ValidationFailedException
use TheCodingMachine\GraphQLite\Validator\ValidationFailedException

class UserController
{
Expand Down Expand Up @@ -77,7 +77,7 @@ class UserController

```php title="UserController.php"
use Symfony\Component\Validator\Validator\ValidatorInterface;
use TheCodingMachine\Graphqlite\Validator\ValidationFailedException
use TheCodingMachine\GraphQLite\Validator\ValidationFailedException

class UserController
{
Expand Down Expand Up @@ -212,7 +212,7 @@ Use the `@Assertion` annotation to validate directly the user input.

```php
use Symfony\Component\Validator\Constraints as Assert;
use TheCodingMachine\Graphqlite\Validator\Annotations\Assertion;
use TheCodingMachine\GraphQLite\Validator\Annotations\Assertion;

/**
* @Query
Expand Down

0 comments on commit b5230f7

Please sign in to comment.