From 77d7d82442fa51324bf54b36be776ce1e6719680 Mon Sep 17 00:00:00 2001 From: Wedam Anewenah Date: Sat, 11 Nov 2023 02:57:45 +0000 Subject: [PATCH 1/3] Upgrade to watchtower v2 --- .../packages/wedrix_watchtower_bundle.yaml | 18 ++++++++++++++++++ .../wedrix_watchtower_bundle_routes.yaml | 2 ++ .../watchtower/plugins/authorizors/.gitignore | 0 .../watchtower/plugins/filters/.gitignore | 0 .../watchtower/plugins/mutations/.gitignore | 0 .../watchtower/plugins/orderings/.gitignore | 0 .../watchtower/plugins/resolvers/.gitignore | 0 .../watchtower/plugins/selectors/.gitignore | 0 .../scalar_type_definitions/.gitignore | 0 wedrix/watchtower-bundle/2.0/manifest.json | 8 ++++++++ 10 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/config/watchtower/plugins/authorizors/.gitignore create mode 100644 wedrix/watchtower-bundle/2.0/config/watchtower/plugins/filters/.gitignore create mode 100644 wedrix/watchtower-bundle/2.0/config/watchtower/plugins/mutations/.gitignore create mode 100644 wedrix/watchtower-bundle/2.0/config/watchtower/plugins/orderings/.gitignore create mode 100644 wedrix/watchtower-bundle/2.0/config/watchtower/plugins/resolvers/.gitignore create mode 100644 wedrix/watchtower-bundle/2.0/config/watchtower/plugins/selectors/.gitignore create mode 100644 wedrix/watchtower-bundle/2.0/config/watchtower/scalar_type_definitions/.gitignore 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/config/watchtower/plugins/authorizors/.gitignore b/wedrix/watchtower-bundle/2.0/config/watchtower/plugins/authorizors/.gitignore new file mode 100644 index 000000000..e69de29bb diff --git a/wedrix/watchtower-bundle/2.0/config/watchtower/plugins/filters/.gitignore b/wedrix/watchtower-bundle/2.0/config/watchtower/plugins/filters/.gitignore new file mode 100644 index 000000000..e69de29bb diff --git a/wedrix/watchtower-bundle/2.0/config/watchtower/plugins/mutations/.gitignore b/wedrix/watchtower-bundle/2.0/config/watchtower/plugins/mutations/.gitignore new file mode 100644 index 000000000..e69de29bb diff --git a/wedrix/watchtower-bundle/2.0/config/watchtower/plugins/orderings/.gitignore b/wedrix/watchtower-bundle/2.0/config/watchtower/plugins/orderings/.gitignore new file mode 100644 index 000000000..e69de29bb diff --git a/wedrix/watchtower-bundle/2.0/config/watchtower/plugins/resolvers/.gitignore b/wedrix/watchtower-bundle/2.0/config/watchtower/plugins/resolvers/.gitignore new file mode 100644 index 000000000..e69de29bb diff --git a/wedrix/watchtower-bundle/2.0/config/watchtower/plugins/selectors/.gitignore b/wedrix/watchtower-bundle/2.0/config/watchtower/plugins/selectors/.gitignore new file mode 100644 index 000000000..e69de29bb diff --git a/wedrix/watchtower-bundle/2.0/config/watchtower/scalar_type_definitions/.gitignore b/wedrix/watchtower-bundle/2.0/config/watchtower/scalar_type_definitions/.gitignore new file mode 100644 index 000000000..e69de29bb 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%/" + } +} From 0a64818ab42fe1209b3fa532b6f83d03b0fe0e9b Mon Sep 17 00:00:00 2001 From: Wedam Anewenah Date: Sat, 11 Nov 2023 04:05:29 +0000 Subject: [PATCH 2/3] Enable doctrine-bundle in manifest.json --- wedrix/watchtower-bundle/1.0/manifest.json | 3 ++- wedrix/watchtower-bundle/2.0/manifest.json | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/wedrix/watchtower-bundle/1.0/manifest.json b/wedrix/watchtower-bundle/1.0/manifest.json index d47858037..4c9e0c7de 100644 --- a/wedrix/watchtower-bundle/1.0/manifest.json +++ b/wedrix/watchtower-bundle/1.0/manifest.json @@ -1,6 +1,7 @@ { "bundles": { - "Wedrix\\WatchtowerBundle\\WedrixWatchtowerBundle": ["all"] + "Wedrix\\WatchtowerBundle\\WedrixWatchtowerBundle": ["all"], + "Doctrine\\Bundle\\DoctrineBundle\\DoctrineBundle": ["all"] }, "copy-from-recipe": { "config/": "%CONFIG_DIR%/" diff --git a/wedrix/watchtower-bundle/2.0/manifest.json b/wedrix/watchtower-bundle/2.0/manifest.json index d47858037..4c9e0c7de 100644 --- a/wedrix/watchtower-bundle/2.0/manifest.json +++ b/wedrix/watchtower-bundle/2.0/manifest.json @@ -1,6 +1,7 @@ { "bundles": { - "Wedrix\\WatchtowerBundle\\WedrixWatchtowerBundle": ["all"] + "Wedrix\\WatchtowerBundle\\WedrixWatchtowerBundle": ["all"], + "Doctrine\\Bundle\\DoctrineBundle\\DoctrineBundle": ["all"] }, "copy-from-recipe": { "config/": "%CONFIG_DIR%/" From 7d0aece581650c2e2fcfbc356bc7a3a4445e2485 Mon Sep 17 00:00:00 2001 From: Wedam Anewenah Date: Mon, 13 Nov 2023 15:26:16 +0000 Subject: [PATCH 3/3] Removed default watchtower config directory --- .../2.0/config/watchtower/plugins/authorizors/.gitignore | 0 .../2.0/config/watchtower/plugins/filters/.gitignore | 0 .../2.0/config/watchtower/plugins/mutations/.gitignore | 0 .../2.0/config/watchtower/plugins/orderings/.gitignore | 0 .../2.0/config/watchtower/plugins/resolvers/.gitignore | 0 .../2.0/config/watchtower/plugins/selectors/.gitignore | 0 .../2.0/config/watchtower/scalar_type_definitions/.gitignore | 0 7 files changed, 0 insertions(+), 0 deletions(-) delete mode 100644 wedrix/watchtower-bundle/2.0/config/watchtower/plugins/authorizors/.gitignore delete mode 100644 wedrix/watchtower-bundle/2.0/config/watchtower/plugins/filters/.gitignore delete mode 100644 wedrix/watchtower-bundle/2.0/config/watchtower/plugins/mutations/.gitignore delete mode 100644 wedrix/watchtower-bundle/2.0/config/watchtower/plugins/orderings/.gitignore delete mode 100644 wedrix/watchtower-bundle/2.0/config/watchtower/plugins/resolvers/.gitignore delete mode 100644 wedrix/watchtower-bundle/2.0/config/watchtower/plugins/selectors/.gitignore delete mode 100644 wedrix/watchtower-bundle/2.0/config/watchtower/scalar_type_definitions/.gitignore diff --git a/wedrix/watchtower-bundle/2.0/config/watchtower/plugins/authorizors/.gitignore b/wedrix/watchtower-bundle/2.0/config/watchtower/plugins/authorizors/.gitignore deleted file mode 100644 index e69de29bb..000000000 diff --git a/wedrix/watchtower-bundle/2.0/config/watchtower/plugins/filters/.gitignore b/wedrix/watchtower-bundle/2.0/config/watchtower/plugins/filters/.gitignore deleted file mode 100644 index e69de29bb..000000000 diff --git a/wedrix/watchtower-bundle/2.0/config/watchtower/plugins/mutations/.gitignore b/wedrix/watchtower-bundle/2.0/config/watchtower/plugins/mutations/.gitignore deleted file mode 100644 index e69de29bb..000000000 diff --git a/wedrix/watchtower-bundle/2.0/config/watchtower/plugins/orderings/.gitignore b/wedrix/watchtower-bundle/2.0/config/watchtower/plugins/orderings/.gitignore deleted file mode 100644 index e69de29bb..000000000 diff --git a/wedrix/watchtower-bundle/2.0/config/watchtower/plugins/resolvers/.gitignore b/wedrix/watchtower-bundle/2.0/config/watchtower/plugins/resolvers/.gitignore deleted file mode 100644 index e69de29bb..000000000 diff --git a/wedrix/watchtower-bundle/2.0/config/watchtower/plugins/selectors/.gitignore b/wedrix/watchtower-bundle/2.0/config/watchtower/plugins/selectors/.gitignore deleted file mode 100644 index e69de29bb..000000000 diff --git a/wedrix/watchtower-bundle/2.0/config/watchtower/scalar_type_definitions/.gitignore b/wedrix/watchtower-bundle/2.0/config/watchtower/scalar_type_definitions/.gitignore deleted file mode 100644 index e69de29bb..000000000