示例#1
0
文件: File.php 项目: gtyd/jira
 public function init()
 {
     parent::init();
     if ($this->logFile == null) {
         $this->logFile = Yii::$app->getRuntimePath() . '/logs/mqs.log';
     } else {
         $this->logFile = Yii::getAlias($this->logFile);
     }
     $logPath = dirname($this->logFile);
     if (!is_dir($logPath)) {
         FileHelper::createDirectory($logPath, $this->dirMode, true);
     }
 }
示例#2
0
文件: Db.php 项目: gtyd/jira
 public function init()
 {
     parent::init();
 }