public function loadConfigurationFile($file)
    {
        if (!file_exists($file)) {
            throw new \InvalidArgumentException(sprintf('Configuration file "%s" not found', $file));
        }
        $this->loadedConfig = Yaml::parse(file_get_contents($file));

        return $this;
    }
public function loadConfigurationFile($file)
    {
        if (!file_exists($file)) {
            throw new \InvalidArgumentException(sprintf('Configuration file "%s" not found', $file));
        }
        $this->loadedConfig = Yaml::parse(file_get_contents($file));

        return $this;
    }
public function loadConfigurationFile ( $ file ) { if ( ! file_exists ( $ file ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Configuration file "%s" not found' , $ file ) ) ; } $ this -> loadedConfig = Yaml :: parse ( file_get_contents ( $ file ) ) ; return $ this ; }
Load a configuration from an external YAML file.

@param string $file

@return ClientBuilder
Load a configuration from an external YAML file .