From 5e64879e7525bc0049ba2276ff686e5d2a9305e4 Mon Sep 17 00:00:00 2001 From: Jay Potter Date: Wed, 12 Aug 2026 14:14:12 -0400 Subject: [PATCH] add hasDispatcher 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 8d054a3..7eaf76e 100644 --- a/src/Potter/Event/Behaviour.php +++ b/src/Potter/Event/Behaviour.php @@ -22,4 +22,9 @@ trait Behaviour { return $container->get(Dispatcher::class); } + + private static function hasDispatcher(Container $container): bool + { + return $container->has(Dispatcher::class); + } }