From e09dd8164c75e37ae5fc5e43986617c1e49bec47 Mon Sep 17 00:00:00 2001 From: Tac Tacelosky Date: Mon, 18 Nov 2024 07:18:59 -0500 Subject: [PATCH] remove php route config (#1710) * remove php route config * fix href text --- .../command-bundle/1.5/config/routes/survos_command.php | 9 --------- .../command-bundle/1.5/config/routes/survos_command.yaml | 6 ++++++ survos/command-bundle/1.5/post-install.txt | 6 +++--- 3 files changed, 9 insertions(+), 12 deletions(-) delete mode 100644 survos/command-bundle/1.5/config/routes/survos_command.php create mode 100644 survos/command-bundle/1.5/config/routes/survos_command.yaml diff --git a/survos/command-bundle/1.5/config/routes/survos_command.php b/survos/command-bundle/1.5/config/routes/survos_command.php deleted file mode 100644 index 369434978..000000000 --- a/survos/command-bundle/1.5/config/routes/survos_command.php +++ /dev/null @@ -1,9 +0,0 @@ -import('@SurvosCommandBundle/config/routes.php') - ->prefix('/admin') // consider adding this path to the access_control key in security - ; -}; - diff --git a/survos/command-bundle/1.5/config/routes/survos_command.yaml b/survos/command-bundle/1.5/config/routes/survos_command.yaml new file mode 100644 index 000000000..3802f5f4c --- /dev/null +++ b/survos/command-bundle/1.5/config/routes/survos_command.yaml @@ -0,0 +1,6 @@ +survos_command: + prefix: /admin/commands + type: attribute + resource: + path: '@SurvosCommandBundle/src/Controller/' + namespace: Survos\CommandBundle\Controller diff --git a/survos/command-bundle/1.5/post-install.txt b/survos/command-bundle/1.5/post-install.txt index 22519cef2..078076d50 100644 --- a/survos/command-bundle/1.5/post-install.txt +++ b/survos/command-bundle/1.5/post-install.txt @@ -3,6 +3,6 @@ * Next steps: - 1. Configure /config/packages/survos_command.php to expose the namespaces (command prefixes) - 2. secure the /admin route, configure the route in config/routes/survos_command.php; - 3. Visit /admin/commmands. + 1. Configure /config/packages/survos_command.yaml to expose the namespaces (command prefixes) + 2. secure the /admin route, customize the route in config/routes/survos_command.yaml; + 3. Visit /admin/commands.