public function setBasePath($path)
    {
        parent::setBasePath($path);
        $this->setAlias('@app', $this->getBasePath());
        if (empty($this->getAlias('@root', false))) {
            $this->setAlias('@root', dirname(__DIR__, 5));
        }
    }