From ad754c68063a99c9a3d2d1cc8a9ec65d010af1d2 Mon Sep 17 00:00:00 2001 From: Jay Potter Date: Wed, 12 Aug 2026 13:57:50 -0400 Subject: [PATCH] add getDispatcher method --- src/Potter/Event/Behaviour.php | 5 +++++ 1 file changed, 5 insertions(+) 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); + } }