shlink/module/EventDispatcher/functions/functions.php
2019-07-19 19:54:39 +02:00

11 lines
295 B
PHP

<?php
declare(strict_types=1);
namespace Shlinkio\Shlink\EventDispatcher;
use Swoole\Http\Server as HttpServer;
function asyncListener(HttpServer $server, string $regularListenerName): Listener\AsyncEventListener
{
return new Listener\AsyncEventListener($server, $regularListenerName);
}