draw / console
This component allow to command execution in the database.
Installs: 14 249
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- doctrine/dbal: ^3.3
- draw/core: ^0.16
- psr/log: ^3
- ramsey/uuid: ^4.2
- sensiolabs/ansi-to-html: ^1.2
- symfony/console: ^6.4.0
- symfony/event-dispatcher: ^6.4.0
Requires (Dev)
- doctrine/orm: ^2.11
- draw/dependency-injection: ^0.16
- draw/tester: ^0.16
- phpunit/phpunit: ^11.3
- symfony/cache: ^6.4.0
- dev-master / 0.17.x-dev
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.47
- 0.10.46
- 0.10.45
- 0.10.44
- 0.10.43
- 0.10.42
- 0.10.41
- 0.10.40
- 0.10.39
- 0.10.38
- 0.10.37
- 0.10.36
- 0.10.35
- 0.10.34
- 0.10.33
- 0.10.32
- 0.10.31
- 0.10.30
- 0.10.29
- 0.10.28
- 0.10.27
- 0.10.26
- 0.10.25
- 0.10.24
- 0.10.23
- 0.10.22
- 0.10.21
- 0.10.20
- 0.10.18
- 0.10.17
- 0.10.16
- 0.10.15
- 0.10.14
- 0.10.13
- 0.10.11
- 0.10.10
- 0.10.9
- 0.10.8
- 0.10.7
- 0.10.6
- 0.10.5
- 0.10.4
- 0.10.3
- 0.10.2
- 0.10.1
- 0.10.0
- 0.9.92
- 0.9.91
- 0.9.90
- 0.9.89
- 0.9.88
- 0.9.87
- 0.9.86
- 0.9.85
- 0.9.84
- 0.9.83
- 0.9.82
- 0.9.81
- 0.9.80
- 0.9.79
- 0.9.78
- 0.9.77
- 0.9.76
- 0.9.75
- 0.9.74
- 0.9.73
- 0.9.72
- 0.9.71
- 0.9.70
- 0.9.69
- 0.9.68
- 0.9.67
- 0.9.66
- 0.9.65
- 0.9.64
- 0.9.63
- 0.9.62
- 0.9.61
- 0.9.60
- 0.9.59
- 0.9.58
- 0.9.57
- 0.9.56
- 0.9.55
- 0.9.54
- 0.9.53
- 0.9.52
- 0.9.51
- 0.9.50
- 0.9.49
- 0.9.48
- 0.9.47
- 0.9.46
- 0.9.45
- 0.9.44
- 0.9.43
- 0.9.42
- 0.9.41
- 0.9.40
- 0.9.39
- 0.9.38
- 0.9.37
- 0.9.36
- 0.9.35
- 0.9.34
- 0.9.33
- 0.9.32
- 0.9.31
- 0.9.30
- 0.9.29
- 0.9.28
- 0.9.27
- 0.9.26
- 0.9.25
- 0.9.24
- 0.9.23
- 0.9.22
- 0.9.21
- 0.9.20
- 0.9.19
- 0.9.18
- 0.9.17
- 0.9.16
- 0.9.15
- 0.9.14
- 0.9.13
- 0.9.12
- 0.9.11
- 0.9.10
- 0.9.9
- 0.9.8
- 0.9.7
- 0.9.6
- 0.9.5
- 0.9.4
- 0.9.3
- 0.9.2
- 0.9.1
- 0.9.0
- 0.8.9
- 0.8.8
- 0.8.7
- 0.8.6
- 0.8.5
- 0.8.4
- 0.8.3
- 0.8.2
- 0.8.1
- 0.8.0
This package is auto-updated.
Last update: 2024-12-05 18:23:31 UTC
README
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.
Configuration
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"
Logging command execution
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\Component\Console\Output\BufferedConsoleOutput());
Some predefined command are ignored by the command logging. This is a predefined list:
- help
- doctrine:database:drop
- doctrine:database:create
- cache:clear
Todo
- Allow to configure the list of command that are ignored form the logger
- Allow to have argument on the command execution, could be predefined from the configuration, an input in the admin, or a more complex input done by reverse engineering the arguments of a command