private static function invalidRequestHandler(ContainerInterface $container): InvalidRequestHandlerInterface
    {
        if (!$container->has(InvalidRequestHandlerInterface::class)) {
            return new InvalidRequestHandler();
        }

        return $container->get(InvalidRequestHandlerInterface::class);
    }
private static function invalidRequestHandler(ContainerInterface $container): InvalidRequestHandlerInterface
    {
        if (!$container->has(InvalidRequestHandlerInterface::class)) {
            return new InvalidRequestHandler();
        }

        return $container->get(InvalidRequestHandlerInterface::class);
    }
private static function invalidRequestHandler ( ContainerInterface $ container ) : InvalidRequestHandlerInterface { if ( ! $ container -> has ( InvalidRequestHandlerInterface :: class ) ) { return new InvalidRequestHandler ( ) ; } return $ container -> get ( InvalidRequestHandlerInterface :: class ) ; }
Return an instance of the NotFoundHandlerInterface.

@throws ContainerExceptionInterface
@throws NotFoundExceptionInterface
Return an instance of the NotFoundHandlerInterface .