From a4c50f975ea31b8c6d91dbc8071684f711783210 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Wed, 23 Feb 2022 16:32:08 +0800 Subject: [PATCH] modify plugin name --- EventDispatch.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/EventDispatch.php b/EventDispatch.php index a0fe369..d159c49 100644 --- a/EventDispatch.php +++ b/EventDispatch.php @@ -4,6 +4,8 @@ namespace Kiri\Events; use Kiri\Abstracts\Component; use Kiri; +use Psr\Container\ContainerExceptionInterface; +use Psr\Container\NotFoundExceptionInterface; use Psr\EventDispatcher\EventDispatcherInterface; use Psr\EventDispatcher\StoppableEventInterface; @@ -18,7 +20,8 @@ class EventDispatch extends Component implements EventDispatcherInterface /** * @param object $event * @return object - * @throws \ReflectionException + * @throws ContainerExceptionInterface + * @throws NotFoundExceptionInterface */ public function dispatch(object $event): object {