Skip to content

Commit 3a5ca49

Browse files
author
Bertrand Dunogier
committed
Moved generated graphql schema files to app/config/graphql (#60)
1 parent 1d95bdd commit 3a5ca49

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

Command/GeneratePlatformSchemaCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class GeneratePlatformSchemaCommand extends Command
2626
*/
2727
private $generator;
2828

29-
const TYPES_DIRECTORY = "src/AppBundle/Resources/config/graphql";
29+
const TYPES_DIRECTORY = "app/config/graphql";
3030

3131
public function __construct(Repository $repository, SchemaGenerator $generator)
3232
{

DependencyInjection/BDEzPlatformGraphQLExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717
class BDEzPlatformGraphQLExtension extends Extension implements PrependExtensionInterface
1818
{
19-
const DOMAIN_SCHEMA_FILE = __DIR__. '/../../../../src/AppBundle/Resources/config/graphql/Domain.types.yml';
19+
const DOMAIN_SCHEMA_FILE = __DIR__. '/../../../../app/config/graphql/Domain.types.yml';
2020

2121
/**
2222
* {@inheritdoc}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ php bin/console bd:platform-graphql:generate-domain-schema
6363
php bin/console cache:clear
6464
```
6565

66-
It will generate a lot of yaml files in `src/AppBundle/Resources/config/graphql`, based on your content types.
66+
It will generate a lot of yaml files in `app/config/graphql`, based on your content types.
6767

6868
### GraphiQL
6969
The graphical graphQL client, GraphiQL, must be installed separately if you want to use it.

doc/domain_schema.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ Queries look like this:
3434

3535
Run `php bin/console bd:platform-graphql:generate-domain-schema` from the root of your
3636
eZ Platform installation. It will go over your repository, and generate the matching
37-
types in `src/AppBundle/Resources/graphql/`.
37+
types in `app/config/graphql/`.
3838

39-
Open `<host>/graphiql/domain`. The content type groups, content types and their fields
39+
Open `<host>/graphiql`. The content type groups, content types and their fields
4040
will be exposed as the schema.
4141

4242
## Customizing the schema

0 commit comments

Comments
 (0)