From 0ffc79cdb1684d4035f4525597ace19b43be13bc Mon Sep 17 00:00:00 2001 From: Tac Tacelosky Date: Sun, 17 Nov 2024 05:46:22 -0500 Subject: [PATCH] add routes as yaml --- survos/command-bundle/1.5/config/routes/routes.yaml | 6 ++++++ .../command-bundle/1.5/config/routes/survos_command.php | 9 --------- 2 files changed, 6 insertions(+), 9 deletions(-) create mode 100644 survos/command-bundle/1.5/config/routes/routes.yaml delete mode 100644 survos/command-bundle/1.5/config/routes/survos_command.php diff --git a/survos/command-bundle/1.5/config/routes/routes.yaml b/survos/command-bundle/1.5/config/routes/routes.yaml new file mode 100644 index 000000000..e3d06a849 --- /dev/null +++ b/survos/command-bundle/1.5/config/routes/routes.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/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 - ; -}; -