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;
}