lkt/commander

LKT Commander

Installs: 192

Dependents: 2

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/lkt/commander

2.0.1 2023-09-04 15:25 UTC

This package is auto-updated.

Last update: 2025-09-24 15:53:42 UTC


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();