getDI()->getShared('config'); } /** * @return RedisCache */ public function getCache() { return $this->getDI()->getShared('cache'); } /** * @return \Redis */ public function getRedis() { return $this->getCache()->getRedis(); } /** * @param null $channel * @return PhLogger */ public function getLogger($channel = null) { $logger = new AppLogger(); return $logger->getInstance($channel); } }