/**
  * Constructor validator
  *
  * @access public
  *
  * @param array $params Configuration array
  *
  * @result void
  * @throws Exception
  */
 public function __construct(array $params)
 {
     parent::__construct($params);
     $this->captcha = (new UserInjector())->build()->getCaptcha();
 }
Example #2
0
 /**
  * Constructor validator
  *
  * @access public
  *
  * @param array $params Configuration array
  *
  * @result void
  */
 public function __construct(array $params)
 {
     parent::__construct($params);
     $this->captcha = $this->container->user->getCaptcha();
 }
Example #3
0
 /**
  * Initial validator
  *
  * @access public
  *
  * @param array $params Configuration array
  *
  * @result void
  */
 public function __construct(array $params)
 {
     $this->params = array_merge($this->params, ['true' => true, 'false' => false]);
     parent::__construct($params);
 }