создать файл config/packages/health_check.yaml
и добавить:
run_console:
commands: ['%your-command-name%'']
добавить в файл config/routes/annotations.yaml
run_console:
resource: '@RunConsoleBundle/Controller'
type: attributes
TODO:
- перейти на Process
- управлять выводом (долгий запрос, асинхронность, держать в памяти-файлах)