mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-14 16:46:30 +03:00
add survos/command-bundle (#1553)
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
survos_command:
|
||||
# expose app:my-command, etc.
|
||||
namespaces: [app]
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
<?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,9 @@
|
||||
{
|
||||
"bundles": {
|
||||
"Survos\\CommandBundle\\SurvosCommandBundle": ["all"]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
<bg=green;fg=white> </>
|
||||
<bg=green;fg=white> success </>
|
||||
<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</>.
|
||||
Reference in New Issue
Block a user