mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-09 16:53:11 +08:00
Improved ListenerProviderFactoryTest
This commit is contained in:
@@ -31,6 +31,10 @@ class ListenerProviderFactory implements FactoryInterface
|
||||
AttachableListenerProvider $provider,
|
||||
bool $isAsync = false
|
||||
): void {
|
||||
if (empty($events)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Avoid registering async event listeners when the swoole server is not registered
|
||||
if ($isAsync && ! $container->has(HttpServer::class)) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user