public function setConfiguration($config)
    {
        // Load Util Classes / backwards compatibility
        if (is_string($config)) {
            $this->config = new Config (array('language' => $config));
            $this->translator = new Translator($this->config);
        } else if (is_array($config)) {
            $this->translator = new Translator($config);
        } else {
            throw new InvalidArgumentException("Please provide a string or an array as parameter!");
        }

        return $this;
    }
public function setConfiguration($config)
    {
        // Load Util Classes / backwards compatibility
        if (is_string($config)) {
            $this->config = new Config (array('language' => $config));
            $this->translator = new Translator($this->config);
        } else if (is_array($config)) {
            $this->translator = new Translator($config);
        } else {
            throw new InvalidArgumentException("Please provide a string or an array as parameter!");
        }

        return $this;
    }
public function setConfiguration ( $ config ) { // Load Util Classes / backwards compatibility if ( is_string ( $ config ) ) { $ this -> config = new Config ( array ( 'language' => $ config ) ) ; $ this -> translator = new Translator ( $ this -> config ) ; } else if ( is_array ( $ config ) ) { $ this -> translator = new Translator ( $ config ) ; } else { throw new InvalidArgumentException ( "Please provide a string or an array as parameter!" ) ; } return $ this ; }
Dynamic Package configuration

@param mixed $config Configurations (either lang code as String, or configuration array)
@return \Noherczeg\Breadcrumb\Breadcrumb
@throws InvalidArgumentException
Dynamic Package configuration