This bundle allows triggering command from the sonata admin. It also logs every command execution in the database even if they have been started from the command line.
The configuration lists the commands available from Sonata to be selected and executed:
draw_command:
sonata:
commands:
clearCache:
commandName: "redis:flushdb"
label: "Clear Cache"
icon: "fa-ban"
reIndexSearch:
commandName: "fos:elastica:populate"
label: "Re-Index Search"
icon: "fa-search-plus"
All command execution are log in the databases. They also log the output, so you can debug them in case an error happen.
If you want to proper log the output from command line interface you must use the BufferedConsoleOutput for you output in bin/console:
$application->run($input, new \Draw\Bundle\CommandBundle\Console\Output\BufferedConsoleOutput());
Some predefined command are ignored by the command logging. This is a predefined list:
How can I help you explore Laravel packages today?