Extending console command (CLI)
Permalink
Hello i want to extend the CLI with a custom command.
I have create a command class which is extending Symfony\Component\Console\Command\Command
But how can i register this command to the core?
This i was trying without success in package on_start...
Thank you!
I have create a command class which is extending Symfony\Component\Console\Command\Command
But how can i register this command to the core?
This i was trying without success in package on_start...
use Concrete\Core\Console\Application as ConsoleApplication; /** @var $console ConsoleApplication */ $console = $this->app->make(ConsoleApplication::class); $console->add(new DownloadCommand());
Thank you!