コード例 #1
0
ファイル: FileRoute.php プロジェクト: alexmgit/psrlogger
 /**
  * @inheritdoc
  */
 public function __construct(array $attributes = [])
 {
     parent::__construct($attributes);
     if (!file_exists($this->filePath)) {
         touch($this->filePath);
     }
 }
コード例 #2
0
ファイル: DatabaseRoute.php プロジェクト: alexmgit/psrlogger
 /**
  * @inheritdoc
  */
 public function __construct(array $attributes = [])
 {
     parent::__construct($attributes);
     $this->connection = new PDO($this->dsn, $this->username, $this->password);
 }