lkt / commander
LKT Commander
2.0.1
2023-09-04 15:25 UTC
Requires
- php: >=8.1.0
- ext-intl: *
- ext-json: *
- poliander/cron: ^3.0
- symfony/console: ^6.2
Requires (Dev)
- phpunit/phpunit: ^9.5
- symfony/var-dumper: ^6.2
README
This lib was designed for apps with multiple packages in a way to register Symfony console commands in an easy way.
Usage
Command registration
$command = new YourSymfonyCommand(); \Lkt\Commander\Commander::register($command);
Usage
In your cli.php:
\Lkt\Commander\Commander::run();
Alternatively, if not all console commands uses LKT Commander, you can get the Symfony application this way:
$application = \Lkt\Commander\Commander::getApplication(); // Your stuff... $application->run();