Beispiel #1
0
 /**
  * Constructor
  * 
  * @param  string      $hash              The hash to wrap 
  * @param  WeakHasher  $hasher            A hasher
  * @param  string      $validation_regex  A regex to validate this hash
  */
 public function __construct($hash, WeakHasher $hasher, $validation_regex)
 {
     parent::__construct($hash, $validation_regex);
     $this->hasher = $hasher;
 }
Beispiel #2
0
 /**
  * Constructor
  *
  * @param array $array 
  * @return Hash
  * @author Justin Palmer
  */
 public function __construct()
 {
     parent::__construct($_ENV += $_SERVER += $_REQUEST += $_COOKIE += $_SESSION += $_FILES += $_GET += $_POST);
     //parent::__construct(array_merge($_ENV, $_SERVER, $_REQUEST, $_COOKIE, $_SESSION, $_FILES, $_GET, $_POST));
 }