public function setConfig($env = 'production') { if ($env instanceof \walle\config\Config) { $this->config = $env; static::$LOGDIR = $this->config->getDeployment('log-dir'); } else { $this->config = new Config($env); } return $this; }