diff --git a/kiri-engine/Abstracts/Component.php b/kiri-engine/Abstracts/Component.php index 5db7a6ad..4d1699e4 100644 --- a/kiri-engine/Abstracts/Component.php +++ b/kiri-engine/Abstracts/Component.php @@ -70,7 +70,7 @@ class Component implements Configure */ protected function getEventDispatch(): EventDispatch { - return Kiri::getDi()->get(EventDispatch::class); + return $this->getContainer()->get(EventDispatch::class); } /**