public function diCors() { $config = $this->getDI()->getConfig()->cors; return new Cors($config->toArray()); }