public function getDI() { if (!$this->di instanceof DiInterface) { return Di::getDefault(); } return $this->di; }