container = $container; } /** * @return MiddlewareInterface|RequestHandlerInterface * @throws InvalidArgumentException */ public function callResolveMiddleware(string|callable|MiddlewareInterface|RequestHandlerInterface $middleware) { return $this->resolveMiddleware($middleware); } }