mirror of
https://github.com/shlinkio/shlink.git
synced 2025-01-05 19:37:33 +03:00
18 lines
396 B
PHP
18 lines
396 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Shlinkio\Shlink\Rest\Middleware;
|
|
|
|
use Zend\Diactoros\Response\EmptyResponse;
|
|
use Zend\Expressive\Router\Middleware\ImplicitOptionsMiddleware;
|
|
|
|
class EmptyResponseImplicitOptionsMiddlewareFactory
|
|
{
|
|
public function __invoke()
|
|
{
|
|
return new ImplicitOptionsMiddleware(function () {
|
|
return new EmptyResponse();
|
|
});
|
|
}
|
|
}
|