From 15dc54b36ffa28c7690b0c18ec10e2e9fcb8ea03 Mon Sep 17 00:00:00 2001 From: Renato Mendes Figueiredo Date: Fri, 27 Oct 2017 21:00:36 +0200 Subject: [PATCH] OverblogGraphQLBundle: Updated recipe to support version 0.11.* where GraphiQL is now split from the bundle --- .../0.11/config/graphql/types/.gitignore | 0 .../graphql-bundle/0.11/config/packages/graphql.yaml | 11 +++++++++++ .../graphql-bundle/0.11/config/routes/graphql.yaml | 2 ++ overblog/graphql-bundle/0.11/manifest.json | 8 ++++++++ overblog/graphql-bundle/0.11/post-install.txt | 4 ++++ 5 files changed, 25 insertions(+) create mode 100644 overblog/graphql-bundle/0.11/config/graphql/types/.gitignore create mode 100644 overblog/graphql-bundle/0.11/config/packages/graphql.yaml create mode 100644 overblog/graphql-bundle/0.11/config/routes/graphql.yaml create mode 100644 overblog/graphql-bundle/0.11/manifest.json create mode 100644 overblog/graphql-bundle/0.11/post-install.txt diff --git a/overblog/graphql-bundle/0.11/config/graphql/types/.gitignore b/overblog/graphql-bundle/0.11/config/graphql/types/.gitignore new file mode 100644 index 00000000..e69de29b diff --git a/overblog/graphql-bundle/0.11/config/packages/graphql.yaml b/overblog/graphql-bundle/0.11/config/packages/graphql.yaml new file mode 100644 index 00000000..bcab1b3d --- /dev/null +++ b/overblog/graphql-bundle/0.11/config/packages/graphql.yaml @@ -0,0 +1,11 @@ +overblog_graphql: + definitions: + schema: + query: Query + mappings: + auto_discover: false + types: + - + type: yaml + dir: "%kernel.project_dir%/config/graphql/types" + suffix: ~ diff --git a/overblog/graphql-bundle/0.11/config/routes/graphql.yaml b/overblog/graphql-bundle/0.11/config/routes/graphql.yaml new file mode 100644 index 00000000..0279a599 --- /dev/null +++ b/overblog/graphql-bundle/0.11/config/routes/graphql.yaml @@ -0,0 +1,2 @@ +overblog_graphql_endpoint: + resource: "@OverblogGraphQLBundle/Resources/config/routing/graphql.yml" diff --git a/overblog/graphql-bundle/0.11/manifest.json b/overblog/graphql-bundle/0.11/manifest.json new file mode 100644 index 00000000..42ec53d0 --- /dev/null +++ b/overblog/graphql-bundle/0.11/manifest.json @@ -0,0 +1,8 @@ +{ + "bundles": { + "Overblog\\GraphQLBundle\\OverblogGraphQLBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + } +} diff --git a/overblog/graphql-bundle/0.11/post-install.txt b/overblog/graphql-bundle/0.11/post-install.txt new file mode 100644 index 00000000..69b901c2 --- /dev/null +++ b/overblog/graphql-bundle/0.11/post-install.txt @@ -0,0 +1,4 @@ + Next for OverblogGraphQLBundle + 1. Define your schema, read documentation https://github.com/overblog/GraphQLBundle/blob/master/Resources/doc/definitions/index.md + 2. If you want to see your dumped schema (really not necessary for bootstrap): run bin/console graphql:dump-schema + 3. If you want to have GraphiQL to browse your API run: composer req --dev overblog/graphiql-bundle