35 lines
834 B
PHP
35 lines
834 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
/*
|
||
|
|
* Core PHP Framework
|
||
|
|
*
|
||
|
|
* Licensed under the European Union Public Licence (EUPL) v1.2.
|
||
|
|
* See LICENSE file for details.
|
||
|
|
*/
|
||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
namespace Core\Console;
|
||
|
|
|
||
|
|
use Core\Events\ConsoleBooting;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Core Console module - registers framework artisan commands.
|
||
|
|
*/
|
||
|
|
class Boot
|
||
|
|
{
|
||
|
|
public static array $listens = [
|
||
|
|
ConsoleBooting::class => 'onConsole',
|
||
|
|
];
|
||
|
|
|
||
|
|
public function onConsole(ConsoleBooting $event): void
|
||
|
|
{
|
||
|
|
$event->command(Commands\InstallCommand::class);
|
||
|
|
$event->command(Commands\NewProjectCommand::class);
|
||
|
|
$event->command(Commands\MakeModCommand::class);
|
||
|
|
$event->command(Commands\MakePlugCommand::class);
|
||
|
|
$event->command(Commands\MakeWebsiteCommand::class);
|
||
|
|
$event->command(Commands\PruneEmailShieldStatsCommand::class);
|
||
|
|
}
|
||
|
|
}
|