mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-12 07:36:34 +03:00
55 lines
2.2 KiB
JSON
55 lines
2.2 KiB
JSON
{
|
|
"manifests": {
|
|
"survos/command-bundle": {
|
|
"manifest": {
|
|
"bundles": {
|
|
"Survos\\CommandBundle\\SurvosCommandBundle": [
|
|
"all"
|
|
]
|
|
},
|
|
"copy-from-recipe": {
|
|
"config/": "%CONFIG_DIR%/"
|
|
},
|
|
"post-install-output": [
|
|
"<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</>."
|
|
]
|
|
},
|
|
"files": {
|
|
"config/packages/survos_command.yaml": {
|
|
"contents": [
|
|
"survos_command:",
|
|
" # expose app:my-command, etc.",
|
|
" namespaces: [app]",
|
|
"",
|
|
""
|
|
],
|
|
"executable": false
|
|
},
|
|
"config/routes/survos_command.php": {
|
|
"contents": [
|
|
"<?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",
|
|
" ;",
|
|
"};",
|
|
"",
|
|
""
|
|
],
|
|
"executable": false
|
|
}
|
|
},
|
|
"ref": "31483097a99800fa6b049af3c61ad0ebf5727751"
|
|
}
|
|
}
|
|
}
|