protected function loadUri($uri)
    {
        try {
            // Try to load the file through PHP's include().
            // Make sure we don't accidentally create output.
            ob_start();
            $data = include($uri);
            ob_end_clean();

            return $data;
        } catch (Exception $exception) {
            throw new FailedToLoadConfigException(
                sprintf(
                    _('Could not include PHP config file "%1$s". Reason: "%2$s".'),
                    $uri,
                    $exception->getMessage()
                ),
                $exception->getCode(),
                $exception
            );
        }
    }
protected function loadUri($uri)
    {
        try {
            // Try to load the file through PHP's include().
            // Make sure we don't accidentally create output.
            ob_start();
            $data = include($uri);
            ob_end_clean();

            return $data;
        } catch (Exception $exception) {
            throw new FailedToLoadConfigException(
                sprintf(
                    _('Could not include PHP config file "%1$s". Reason: "%2$s".'),
                    $uri,
                    $exception->getMessage()
                ),
                $exception->getCode(),
                $exception
            );
        }
    }
protected function loadUri ( $ uri ) { try { // Try to load the file through PHP's include(). // Make sure we don't accidentally create output. ob_start ( ) ; $ data = include ( $ uri ) ; ob_end_clean ( ) ; return $ data ; } catch ( Exception $ exception ) { throw new FailedToLoadConfigException ( sprintf ( _ ( 'Could not include PHP config file "%1$s". Reason: "%2$s".' ) , $ uri , $ exception -> getMessage ( ) ) , $ exception -> getCode ( ) , $ exception ) ; } }
Load the contents of an resource identified by an URI.

@since 0.4.0

@param string $uri URI of the resource.

@return array|null Raw data loaded from the resource. Null if no data found.
@throws FailedToLoadConfigException If the resource could not be loaded.
Load the contents of an resource identified by an URI .