public function getRootDir() { if (null === $this->rootDir) { $this->rootDir = realpath(getcwd() . '/app'); } return $this->rootDir; }