Skip to content

Commit

Permalink
Enabled ezplatform-graphql (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bertrand Dunogier authored and webhdx committed Jul 1, 2019
1 parent 04692f4 commit 3a98bd7
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 10 deletions.
2 changes: 2 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"ezsystems/ezplatform-admin-ui-modules": "^2.0@dev",
"ezsystems/ezplatform-core": "^2.0@dev",
"ezsystems/ezplatform-design-engine": "^3.0@dev",
"ezsystems/ezplatform-graphql": "^2.0@dev",
"ezsystems/ezplatform-http-cache": "^1.0@dev",
"ezsystems/ezplatform-richtext": "^2.0@dev",
"ezsystems/ezplatform-standard-design": "^0.3@dev",
Expand Down Expand Up @@ -72,6 +73,7 @@
"ezsystems/behat-screenshot-image-driver-cloudinary": "^1.1@dev",
"ezsystems/behatbundle": "^7.0@dev",
"liuggio/fastest": "^1.6",
"overblog/graphiql-bundle": "^0.1.2",
"symfony/debug-pack": "^1.0",
"symfony/maker-bundle": "^1.0",
"symfony/test-pack": "^1.0",
Expand Down
3 changes: 3 additions & 0 deletions config/bundles.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,7 @@
EzSystems\BehatBundle\EzSystemsBehatBundle::class => ['behat' => true],
EzSystems\PlatformHttpCacheBundle\EzSystemsPlatformHttpCacheBundle::class => ['all' => true],
Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle::class => ['all' => true],
EzSystems\EzPlatformGraphQL\EzSystemsEzPlatformGraphQLBundle::class => ['all' => true],
Overblog\GraphQLBundle\OverblogGraphQLBundle::class => ['all' => true],
Overblog\GraphiQLBundle\OverblogGraphiQLBundle::class => ['dev' => true],
];
9 changes: 9 additions & 0 deletions config/packages/graphql.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
overblog_graphql:
definitions:
mappings:
auto_discover: false
types:
-
type: yaml
dir: "%kernel.project_dir%/config/graphql/types"
suffix: ~
4 changes: 2 additions & 2 deletions config/routes/dev/graphiql.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#overblog_graphql_graphiql:
# resource: "@OverblogGraphiQLBundle/Resources/config/routing.xml"
overblog_graphql_graphiql:
resource: "@OverblogGraphiQLBundle/Resources/config/routing.xml"
13 changes: 5 additions & 8 deletions config/routes/graphql.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#overblog_graphql:
# resource: "@OverblogGraphQLBundle/Resources/config/routing/graphql.yml"
#
#overblog_graphql_endpoint:
# path: /graphql
# defaults:
# _controller: Overblog\GraphQLBundle\Controller\GraphController::endpointAction
# _format: json
overblog_graphql_endpoint:
path: /graphql
defaults:
_controller: Overblog\GraphQLBundle\Controller\GraphController::endpointAction
_format: "json"

0 comments on commit 3a98bd7

Please sign in to comment.