From bb51dc1a036d671bd141f9e04f6b05032b12581f Mon Sep 17 00:00:00 2001 From: James Wedam Anewenah <41763329+Wedrix@users.noreply.github.com> Date: Mon, 1 Jan 2024 21:13:12 +0000 Subject: [PATCH] Added recipe for wedrix/watchtower-bundle v2 (#1567) --- .../packages/wedrix_watchtower_bundle.yaml | 18 ++++++++++++++++++ .../wedrix_watchtower_bundle_routes.yaml | 2 ++ wedrix/watchtower-bundle/2.0/manifest.json | 8 ++++++++ 3 files changed, 28 insertions(+) create mode 100644 wedrix/watchtower-bundle/2.0/config/packages/wedrix_watchtower_bundle.yaml create mode 100644 wedrix/watchtower-bundle/2.0/config/routes/wedrix_watchtower_bundle_routes.yaml create mode 100644 wedrix/watchtower-bundle/2.0/manifest.json diff --git a/wedrix/watchtower-bundle/2.0/config/packages/wedrix_watchtower_bundle.yaml b/wedrix/watchtower-bundle/2.0/config/packages/wedrix_watchtower_bundle.yaml new file mode 100644 index 000000000..85c3d19d8 --- /dev/null +++ b/wedrix/watchtower-bundle/2.0/config/packages/wedrix_watchtower_bundle.yaml @@ -0,0 +1,18 @@ +wedrix_watchtower: + endpoint: '/graphql.json' + schema_file: '%kernel.project_dir%/config/watchtower/schema.graphql' + plugins_directory: '%kernel.project_dir%/config/watchtower/plugins' + scalar_type_definitions_directory: '%kernel.project_dir%/config/watchtower/scalar_type_definitions' + cache_directory: '%kernel.project_dir%/var/cache/watchtower' + optimize: false + debug: true + context: + # Register services here to access them in the context param. + # The service key can be any name of your choosing but the value should be the service id. + # For example: entity_manager: 'doctrine.orm.entity_manager' + entity_manager: 'doctrine.orm.entity_manager' + +when@prod: + wedrix_watchtower: + optimize: true + debug: false diff --git a/wedrix/watchtower-bundle/2.0/config/routes/wedrix_watchtower_bundle_routes.yaml b/wedrix/watchtower-bundle/2.0/config/routes/wedrix_watchtower_bundle_routes.yaml new file mode 100644 index 000000000..0f2da8037 --- /dev/null +++ b/wedrix/watchtower-bundle/2.0/config/routes/wedrix_watchtower_bundle_routes.yaml @@ -0,0 +1,2 @@ +wedrix_watchtower_bundle_routes: + resource: '@WedrixWatchtowerBundle/config/routes.yaml' diff --git a/wedrix/watchtower-bundle/2.0/manifest.json b/wedrix/watchtower-bundle/2.0/manifest.json new file mode 100644 index 000000000..d47858037 --- /dev/null +++ b/wedrix/watchtower-bundle/2.0/manifest.json @@ -0,0 +1,8 @@ +{ + "bundles": { + "Wedrix\\WatchtowerBundle\\WedrixWatchtowerBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + } +}