变更
This commit is contained in:
@@ -5,9 +5,8 @@ declare(strict_types=1);
|
||||
namespace Kiri\Error;
|
||||
|
||||
use Kiri\Abstracts\Logger;
|
||||
use Kiri\Exception\ConfigException;
|
||||
|
||||
class StdoutLogger extends Logger implements StdoutLoggerInterface
|
||||
class StdoutLogger extends Logger
|
||||
{
|
||||
|
||||
|
||||
@@ -21,7 +20,6 @@ class StdoutLogger extends Logger implements StdoutLoggerInterface
|
||||
* @param $message
|
||||
* @param string $model
|
||||
* @return bool
|
||||
* @throws ConfigException
|
||||
*/
|
||||
public function addError($message, string $model = 'app'): bool
|
||||
{
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Kiri\Error;
|
||||
|
||||
use Psr\Log\LoggerInterface;
|
||||
|
||||
interface StdoutLoggerInterface extends LoggerInterface
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @param $message
|
||||
* @param string $model
|
||||
* @return bool
|
||||
*/
|
||||
public function addError($message, string $model = 'app'): bool;
|
||||
|
||||
|
||||
/**
|
||||
* @param string $model
|
||||
* @return mixed
|
||||
*/
|
||||
public function getLastError(string $model = 'app'): mixed;
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user