Moved all event-dispatching stuff to its own module

This commit is contained in:
Alejandro Celaya
2019-07-19 19:54:39 +02:00
parent bccc177414
commit d086131630
16 changed files with 77 additions and 46 deletions

View File

@@ -3,8 +3,6 @@ declare(strict_types=1);
namespace Shlinkio\Shlink\Common;
use Swoole\Http\Server as HttpServer;
use const JSON_ERROR_NONE;
use function getenv;
@@ -61,8 +59,3 @@ function json_decode(string $json, int $depth = 512, int $options = 0): array
return $data;
}
function asyncListener(HttpServer $server, string $regularListenerName): EventDispatcher\AsyncEventListener
{
return new EventDispatcher\AsyncEventListener($server, $regularListenerName);
}