public function getConfig() { if (!$this->config instanceof Config && $this->getDI()->has('config')) { return $this->getDI()->get('config'); } return $this->config; }