protected function loadFile($file)
    {
        if (!stream_is_local($file)) {
            throw new InvalidArgumentException(sprintf('This is not a local file "%s".', $file));
        }

        if (!file_exists($file)) {
            throw new InvalidArgumentException(sprintf('The service file "%s" is not valid.', $file));
        }

        return Toml::Parse($file);
    }
protected function loadFile($file)
    {
        if (!stream_is_local($file)) {
            throw new InvalidArgumentException(sprintf('This is not a local file "%s".', $file));
        }

        if (!file_exists($file)) {
            throw new InvalidArgumentException(sprintf('The service file "%s" is not valid.', $file));
        }

        return Toml::Parse($file);
    }
protected function loadFile ( $ file ) { if ( ! stream_is_local ( $ file ) ) { throw new InvalidArgumentException ( sprintf ( 'This is not a local file "%s".' , $ file ) ) ; } if ( ! file_exists ( $ file ) ) { throw new InvalidArgumentException ( sprintf ( 'The service file "%s" is not valid.' , $ file ) ) ; } return Toml :: Parse ( $ file ) ; }
Loads the Toml File

@param string $file

@throws \Symfony\Component\DependencyInjection\Exception\InvalidArgumentException
@return array
Loads the Toml File