2020-09-03 00:15:57 +08:00
|
|
|
<?php
|
2020-10-29 18:17:25 +08:00
|
|
|
declare(strict_types=1);
|
2020-09-03 00:15:57 +08:00
|
|
|
namespace Console;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
use Exception;
|
2021-08-11 01:04:57 +08:00
|
|
|
use Kiri\Abstracts\Providers;
|
|
|
|
|
use Kiri\Application;
|
2020-09-03 00:15:57 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Class ConsoleProviders
|
|
|
|
|
* @package Console
|
|
|
|
|
*/
|
|
|
|
|
class ConsoleProviders extends Providers
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @param Application $application
|
|
|
|
|
* @throws Exception
|
|
|
|
|
*/
|
|
|
|
|
public function onImport(Application $application)
|
|
|
|
|
{
|
2020-09-08 10:58:09 +08:00
|
|
|
/** @var Console $console */
|
2020-09-08 11:10:29 +08:00
|
|
|
$application->set('console', ['class' => Console::class]);
|
2020-09-03 00:15:57 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|