This commit is contained in:
2023-10-24 17:22:32 +08:00
parent 9c2a349242
commit 9c3c1cfd82
11 changed files with 45 additions and 55 deletions
+1 -5
View File
@@ -23,8 +23,6 @@ use Psr\Container\NotFoundExceptionInterface;
use Psr\Log\LoggerInterface;
use Kiri\Events\EventProvider;
use ReflectionException;
use Monolog\Logger;
use Kiri\Pool\{Pool, PoolInterface};
use Kiri\Error\StdoutLogger;
/**
@@ -67,7 +65,7 @@ abstract class BaseApplication extends Component
*/
public function __construct()
{
$this->container = Kiri::getContainer();
$this->container = Kiri::getContainer();
$this->localService = $this->container->get(LocalService::class);
$this->provider = $this->container->get(EventProvider::class);
@@ -82,8 +80,6 @@ abstract class BaseApplication extends Component
}
const LOGGER_LEVELS = [Logger::EMERGENCY, Logger::ALERT, Logger::CRITICAL, Logger::ERROR, Logger::WARNING, Logger::NOTICE, Logger::INFO, Logger::DEBUG];
/**
* @param ConfigProvider $config
* @return void
+2 -1
View File
@@ -13,6 +13,7 @@ namespace Kiri\Abstracts;
use Exception;
use JetBrains\PhpStorm\Pure;
use Kiri;
use ReflectionException;
/**
* Class Component
@@ -49,7 +50,7 @@ class Component implements Configure
/**
* @return Kiri\Error\StdoutLogger
* @throws \ReflectionException
* @throws ReflectionException
*/
public function getLogger(): Kiri\Error\StdoutLogger
{