mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-11 15:16:55 +03:00
remove php route config (#1710)
* remove php route config * fix href text
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
<?php
|
||||
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
|
||||
|
||||
return static function (RoutingConfigurator $routes): void {
|
||||
$routes->import('@SurvosCommandBundle/config/routes.php')
|
||||
->prefix('/admin') // consider adding this path to the access_control key in security
|
||||
;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
survos_command:
|
||||
prefix: /admin/commands
|
||||
type: attribute
|
||||
resource:
|
||||
path: '@SurvosCommandBundle/src/Controller/'
|
||||
namespace: Survos\CommandBundle\Controller
|
||||
@@ -3,6 +3,6 @@
|
||||
<bg=green;fg=white> </>
|
||||
|
||||
* <fg=yellow>Next steps:</>
|
||||
1. Configure /config/packages/survos_command.php to expose the namespaces (command prefixes)
|
||||
2. <comment>secure the /admin route, configure the route in config/routes/survos_command.php</>;
|
||||
3. Visit <comment>/admin/commmands</>.
|
||||
1. Configure /config/packages/survos_command.yaml to expose the namespaces (command prefixes)
|
||||
2. <comment>secure the /admin route, customize the route in config/routes/survos_command.yaml</>;
|
||||
3. Visit <href=/admin/commmands>/admin/commands</>.
|
||||
|
||||
Reference in New Issue
Block a user