/** * 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(); }
/** * 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(); }
/** * 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); }