add hasDispatcher method
This commit is contained in:
@@ -22,4 +22,9 @@ trait Behaviour
|
|||||||
{
|
{
|
||||||
return $container->get(Dispatcher::class);
|
return $container->get(Dispatcher::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static function hasDispatcher(Container $container): bool
|
||||||
|
{
|
||||||
|
return $container->has(Dispatcher::class);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user