add survos/command-bundle (#1553)

This commit is contained in:
Tac Tacelosky
2023-10-17 13:29:12 -04:00
committed by GitHub
parent 8dde956a9b
commit cf2d161e07
4 changed files with 30 additions and 0 deletions
@@ -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
;
};
+9
View File
@@ -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</>.