eee
This commit is contained in:
+3
-5
@@ -25,17 +25,15 @@ class Task
|
||||
|
||||
|
||||
/**
|
||||
* @param ContainerInterface $container
|
||||
* @throws ContainerExceptionInterface
|
||||
* @throws NotFoundExceptionInterface
|
||||
*
|
||||
*/
|
||||
public function __construct(public ContainerInterface $container)
|
||||
public function __construct()
|
||||
{
|
||||
$exception = \config('exception.task');
|
||||
if (!in_array(ExceptionHandlerInterface::class, class_implements($exception))) {
|
||||
$exception = ExceptionHandlerDispatcher::class;
|
||||
}
|
||||
$this->exception = $this->container->get($exception);
|
||||
$this->exception = Kiri::getDi()->get($exception);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user