2026-03-06 08:49:51 +00:00
|
|
|
<?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);
|
2026-03-12 12:41:17 +00:00
|
|
|
$event->command(Commands\ScheduleSyncCommand::class);
|
2026-03-06 08:49:51 +00:00
|
|
|
}
|
|
|
|
|
}
|