This commit is contained in:
2023-04-16 00:59:31 +08:00
parent a10d597e7e
commit becf0bf249
20 changed files with 164 additions and 955 deletions
+2 -8
View File
@@ -29,17 +29,11 @@ class Component implements Configure
/**
* BaseAbstract constructor.
*
* @param array $config
* @throws Exception
*/
public function __construct(array $config = [])
public function __construct()
{
if (is_null($this->logger)) {
$this->logger = Kiri::getDi()->get(StdoutLoggerInterface::class);
}
if (!empty($config) && is_array($config)) {
Kiri::configure($this, $config);
}
$this->init();
}
/**