コード例 #1
0
ファイル: ConfigCache.php プロジェクト: blazarecki/symfony
 /**
  * @param string $file  The absolute cache path
  * @param bool   $debug Whether debugging is enabled or not
  */
 public function __construct($file, $debug)
 {
     $this->debug = (bool) $debug;
     $checkers = array();
     if (true === $this->debug) {
         $checkers = array(new SelfCheckingResourceChecker());
     }
     parent::__construct($file, $checkers);
 }
コード例 #2
0
ファイル: ConfigCache.php プロジェクト: xingshanghe/symfony
 /**
  * @param string $file  The absolute cache path
  * @param bool   $debug Whether debugging is enabled or not
  */
 public function __construct($file, $debug)
 {
     parent::__construct($file, array(new SelfCheckingResourceChecker()));
     $this->debug = (bool) $debug;
 }