From 01797b055db995766a1e6a6e879b0fab7875df4d Mon Sep 17 00:00:00 2001 From: Eduan de Bruijne Date: Fri, 21 Apr 2023 08:12:27 +0100 Subject: [PATCH] eduandebruijne/admin-bundle recipe (#1430) * Add recipe for eduandebruijne/admin-bundle v9 * Add blank lines at EOF * Fix codestyle * Adjust recipe for 9.0.0 * Rename route config key * Add new environment variables for bundle version 9.1.0 * Make bundle version 9.1.0 minimum for recipe * Cleanup * Fix URL for icons in admin * Use latest bundle version, add post-install text and update ENV vars * Change ~ to null in bundle config * Remove PHP classes, they don't belong in a recipe * Bump bundle version to 11 because removing the PHP classes is not BC * Add dev-main recipe for testing * Remove dev-main version because it doesn't work that way * Update post-install text * Fix version directory * Indent post install text --- .../11.0/config/packages/edb_admin.yaml | 7 +++++++ .../11.0/config/routes/edb_admin.yaml | 8 ++++++++ eduandebruijne/admin-bundle/11.0/manifest.json | 18 ++++++++++++++++++ .../admin-bundle/11.0/post-install.txt | 1 + 4 files changed, 34 insertions(+) create mode 100644 eduandebruijne/admin-bundle/11.0/config/packages/edb_admin.yaml create mode 100644 eduandebruijne/admin-bundle/11.0/config/routes/edb_admin.yaml create mode 100644 eduandebruijne/admin-bundle/11.0/manifest.json create mode 100644 eduandebruijne/admin-bundle/11.0/post-install.txt diff --git a/eduandebruijne/admin-bundle/11.0/config/packages/edb_admin.yaml b/eduandebruijne/admin-bundle/11.0/config/packages/edb_admin.yaml new file mode 100644 index 00000000..6bb2701e --- /dev/null +++ b/eduandebruijne/admin-bundle/11.0/config/packages/edb_admin.yaml @@ -0,0 +1,7 @@ +edb_admin: + admin_icon: "code" # See https://fontawesome.com/v5/search?s=solid + admin_title: "Admin" + source_prefix: "media_source" + cache_prefix: "media_cache" + media_class: null + user_class: null diff --git a/eduandebruijne/admin-bundle/11.0/config/routes/edb_admin.yaml b/eduandebruijne/admin-bundle/11.0/config/routes/edb_admin.yaml new file mode 100644 index 00000000..15a3c8da --- /dev/null +++ b/eduandebruijne/admin-bundle/11.0/config/routes/edb_admin.yaml @@ -0,0 +1,8 @@ +edb_dynamic: + resource: . + type: admin + prefix: '%edb_admin_path%' + +edb_admin: + resource: '@EDBAdminBundle/Resources/config/routes.yaml' + prefix: '%edb_admin_path%' diff --git a/eduandebruijne/admin-bundle/11.0/manifest.json b/eduandebruijne/admin-bundle/11.0/manifest.json new file mode 100644 index 00000000..1f7532ce --- /dev/null +++ b/eduandebruijne/admin-bundle/11.0/manifest.json @@ -0,0 +1,18 @@ +{ + "bundles": { + "EDB\\AdminBundle\\EDBAdminBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "composer-scripts": { + "assets:install %PUBLIC_DIR%": "symfony-cmd", + "cache:clear": "symfony-cmd" + }, + "env": { + "EDB_ADMIN_PATH": "admin", + "EDB_MEDIA_PATH": "/", + "EDB_GOOGLE_CLIENT_ID": "", + "EDB_GOOGLE_CLIENT_SECRET": "" + } +} diff --git a/eduandebruijne/admin-bundle/11.0/post-install.txt b/eduandebruijne/admin-bundle/11.0/post-install.txt new file mode 100644 index 00000000..9331719b --- /dev/null +++ b/eduandebruijne/admin-bundle/11.0/post-install.txt @@ -0,0 +1 @@ + * Read the Installation Instructions at https://github.com/eduandebruijne/admin-bundle