public static function getClass(Request $Request)
    {
        foreach (static::$_registry as $registered) {
            if (in_array($Request->ext, $registered['extensions'])) {
                return $registered['resolve']($Request);
            }
        }

        throw new ErrorException("The following extension is not handled: {$Request->ext}");
    }
public static function getClass(Request $Request)
    {
        foreach (static::$_registry as $registered) {
            if (in_array($Request->ext, $registered['extensions'])) {
                return $registered['resolve']($Request);
            }
        }

        throw new ErrorException("The following extension is not handled: {$Request->ext}");
    }
public static function getClass ( Request $ Request ) { foreach ( static :: $ _registry as $ registered ) { if ( in_array ( $ Request -> ext , $ registered [ 'extensions' ] ) ) { return $ registered [ 'resolve' ] ( $ Request ) ; } } throw new ErrorException ( "The following extension is not handled: {$Request->ext}" ) ; }
Return the AssetClass based on the file extension in the Request Class

@param \Munee\Request $Request

@return Object

@throws ErrorException
Return the AssetClass based on the file extension in the Request Class