engelsystem/tests/Unit/Middleware/Stub/ResolvesMiddlewareTraitImpl...

26 lines
656 B
PHP

<?php
declare(strict_types=1);
namespace Engelsystem\Test\Unit\Middleware\Stub;
use Engelsystem\Application;
use Engelsystem\Middleware\ResolvesMiddlewareTrait;
use Psr\Http\Server\MiddlewareInterface;
use Psr\Http\Server\RequestHandlerInterface;
class ResolvesMiddlewareTraitImplementation
{
use ResolvesMiddlewareTrait;
public function __construct(protected ?Application $container = null)
{
}
public function callResolveMiddleware(
string|callable|MiddlewareInterface|RequestHandlerInterface $middleware
): MiddlewareInterface|RequestHandlerInterface {
return $this->resolveMiddleware($middleware);
}
}