Example #1
0
 public function __construct(callable $keyHasher = null)
 {
     if (!function_exists('sem_get')) {
         throw new \RuntimeException("PHP must be compiled with --enable-sysvsem");
     }
     parent::__construct($keyHasher);
 }
Example #2
0
 public function __construct($basePath, callable $keyHasher, $fileOptions = [])
 {
     parent::__construct($keyHasher);
     $this->fileUtil = new \Cachet\Util\File($basePath, $fileOptions);
 }