setContainer($di); } public function getNotFoundDecorator(NotFoundException $exception): MiddlewareInterface { return $this->getContainer()->get(NotFoundDecoratorInterface::class); } public function getThrowableHandler(): MiddlewareInterface { return $this->getContainer()->get(ThrowableHandlerInterface::class); } public function getMethodNotAllowedDecorator(MethodNotAllowedException $exception): MiddlewareInterface { return $this->getContainer()->has(MethodNotAllowedInterface::class) ? $this->getContainer()->get(MethodNotAllowedInterface::class) : parent::getMethodNotAllowedDecorator($exception); } }