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 36943497..00000000 --- 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 00000000..3802f5f4 --- /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 22519cef..078076d5 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.