Skip to content

Updated namespace in docs according changes in the Symfony bundle #406

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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