public function load($uri)
    {
        try {
            $uri  = $this->validateUri($uri);
            $data = $this->loadUri($uri);

            return $this->parseData($data);
        } catch (Exception $exception) {
            throw new FailedToLoadConfigException(
                sprintf(
                    _('Could not load resource located at "%1$s". Reason: "%2$s".'),
                    $uri,
                    $exception->getMessage()
                ),
                $exception->getCode(),
                $exception
            );
        }
    }
public function load($uri)
    {
        try {
            $uri  = $this->validateUri($uri);
            $data = $this->loadUri($uri);

            return $this->parseData($data);
        } catch (Exception $exception) {
            throw new FailedToLoadConfigException(
                sprintf(
                    _('Could not load resource located at "%1$s". Reason: "%2$s".'),
                    $uri,
                    $exception->getMessage()
                ),
                $exception->getCode(),
                $exception
            );
        }
    }
public function load ( $ uri ) { try { $ uri = $ this -> validateUri ( $ uri ) ; $ data = $ this -> loadUri ( $ uri ) ; return $ this -> parseData ( $ data ) ; } catch ( Exception $ exception ) { throw new FailedToLoadConfigException ( sprintf ( _ ( 'Could not load resource located at "%1$s". Reason: "%2$s".' ) , $ uri , $ exception -> getMessage ( ) ) , $ exception -> getCode ( ) , $ exception ) ; } }
Load the configuration from an URI.

@since 0.4.0

@param string $uri URI of the resource to load.

@return array|null Data contained within the resource. Null if no data could be loaded/parsed.
@throws FailedToLoadConfigException If the configuration could not be loaded.
Load the configuration from an URI .