diff --git a/src/Potter/Event/Behaviour.php b/src/Potter/Event/Behaviour.php index 877bdbf..8d054a3 100644 --- a/src/Potter/Event/Behaviour.php +++ b/src/Potter/Event/Behaviour.php @@ -17,4 +17,9 @@ trait Behaviour { self::addDispatcher($container); } + + private static function getDispatcher(Container $container): Dispatcher + { + return $container->get(Dispatcher::class); + } }