Extending console command (CLI)
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());