public static function request()
    {
        $container = Container::instance();
        if (!$container->has('request')) {
            $request = new Request(Kernel::options('strict'));
            $container->register('request', $request->fromServer());
        }
        return $container->get('request');
    }
public static function request()
    {
        $container = Container::instance();
        if (!$container->has('request')) {
            $request = new Request(Kernel::options('strict'));
            $container->register('request', $request->fromServer());
        }
        return $container->get('request');
    }
public static function request ( ) { $ container = Container :: instance ( ) ; if ( ! $ container -> has ( 'request' ) ) { $ request = new Request ( Kernel :: options ( 'strict' ) ) ; $ container -> register ( 'request' , $ request -> fromServer ( ) ) ; } return $ container -> get ( 'request' ) ; }
Singleton to Request to keep only one instance for each request

@return Request Request object populated by server data
@throws NotFoundExceptionInterface
@throws SimplesRunTimeError
Singleton to Request to keep only one instance for each request