src/Factory.php
public static function resource(string $sResourceName, ?string $sComponentName = ''): Resource
    {
        return call_user_func_array(
            self::getService('resources', $sResourceName, $sComponentName),
            array_slice(func_get_args(), 2)
        );
    }
public static function resource(string $sResourceName, ?string $sComponentName = ''): Resource
    {
        return call_user_func_array(
            self::getService('resources', $sResourceName, $sComponentName),
            array_slice(func_get_args(), 2)
        );
    }
public static function resource ( string $ sResourceName , ? string $ sComponentName = '' ) : Resource { return call_user_func_array ( self :: getService ( 'resources' , $ sResourceName , $ sComponentName ) , array_slice ( func_get_args ( ) , 2 ) ) ; }
Return a resource from the container.

@param string $sResourceName  The resource name
@param string $sComponentName The name of the component which provides the resource

@return Resource
@throws FactoryException
Return a resource from the container .