code: public function setRuntimePath($path)
      {
          $this->_runtimePath = Yii::getAlias($path);
          Yii::setAlias('@runtime', $this->_runtimePath);
      }
docs: Sets the directory that stores runtime files.
  @param string $path the directory that stores runtime files.