2018-08-25 21:16:20 +02:00
|
|
|
<?php
|
|
|
|
|
2023-02-03 20:41:59 +01:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2018-08-25 21:16:20 +02:00
|
|
|
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;
|
|
|
|
|
2022-12-15 19:50:56 +01:00
|
|
|
public function __construct(protected ?Application $container = null)
|
2018-08-25 21:16:20 +02:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2022-12-14 19:15:20 +01:00
|
|
|
public function callResolveMiddleware(
|
2023-11-11 21:08:38 +01:00
|
|
|
string|callable|array|MiddlewareInterface|RequestHandlerInterface $middleware
|
2022-12-14 19:15:20 +01:00
|
|
|
): MiddlewareInterface|RequestHandlerInterface {
|
2018-08-25 21:16:20 +02:00
|
|
|
return $this->resolveMiddleware($middleware);
|
|
|
|
}
|
|
|
|
}
|