protected function loadConfig()
    {
        if (self::$config_path === null) {
            throw new \BadMethodCallException('Config path is null');
        }

        $key = "$this->cnab/$this->bank_code";

        if (!array_key_exists($key, self::$cache)) {
            $config_file = self::$config_path . "/cnab$key.yml";
            if (file_exists($config_file)) {
                self::$cache[$key] = Yaml::parseFile($config_file);
            } else {
                throw new \RuntimeException(sprintf(
                    "Config file for Bank '%s' in CNAB%s not found",
                    $this->bank_code,
                    $this->cnab
                ));
            }
        }

        $this->config = $key;
    }
protected function loadConfig()
    {
        if (self::$config_path === null) {
            throw new \BadMethodCallException('Config path is null');
        }

        $key = "$this->cnab/$this->bank_code";

        if (!array_key_exists($key, self::$cache)) {
            $config_file = self::$config_path . "/cnab$key.yml";
            if (file_exists($config_file)) {
                self::$cache[$key] = Yaml::parseFile($config_file);
            } else {
                throw new \RuntimeException(sprintf(
                    "Config file for Bank '%s' in CNAB%s not found",
                    $this->bank_code,
                    $this->cnab
                ));
            }
        }

        $this->config = $key;
    }
protected function loadConfig ( ) { if ( self :: $ config_path === null ) { throw new \ BadMethodCallException ( 'Config path is null' ) ; } $ key = "$this->cnab/$this->bank_code" ; if ( ! array_key_exists ( $ key , self :: $ cache ) ) { $ config_file = self :: $ config_path . "/cnab$key.yml" ; if ( file_exists ( $ config_file ) ) { self :: $ cache [ $ key ] = Yaml :: parseFile ( $ config_file ) ; } else { throw new \ RuntimeException ( sprintf ( "Config file for Bank '%s' in CNAB%s not found" , $ this -> bank_code , $ this -> cnab ) ) ; } } $ this -> config = $ key ; }
Loads YAML config file into cache

@throws \BadMethodCallException       If called before setConfigPath()
@throws \RuntimeException             If config file does not exist
@throws Yaml\Exception\ParseException If could not load config file
Loads YAML config file into cache