public function getAppDir()
    {
        if (null === $this->container->getAppDir()) {
            $r = new \ReflectionObject($this);
            $this->container->setAppDir(str_replace('\\', '/', dirname($r->getFileName())));
        }

        return $this->container->getAppDir();
    }