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