Exemple #1
0
 public function __construct(&$config)
 {
     $this->cachePath = isset($config['cachePath']) ? Y::getPathAlias($config['cachePath']) : Y::getPathAlias($this->cachePath);
     if (!is_dir($this->cachePath)) {
         FileHelper::createDirectory($this->cachePath);
     }
 }
Exemple #2
0
 public function __construct($config)
 {
     $this->logPath = isset($config['logPath']) ? Y::getPathAlias($config['logPath']) : Y::getPathAlias($this->logPath);
     $this->logFile = $this->generateTimeLogFile();
     if (!is_dir($this->logPath)) {
         FileHelper::createDirectory($this->logPath);
     }
 }