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); + } }