Ejemplo n.º 1
0
 /**
  * @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);
 }
Ejemplo n.º 2
0
 /**
  * @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;
 }