/**
  * {@inheritdoc}
  */
 public function __construct($options = null)
 {
     if (is_array($options)) {
         $options = array_merge($options, array('pattern' => self::PATTERN));
     } else {
         $options = self::PATTERN;
     }
     parent::__construct($options);
 }
 /**
  * {@inheritdoc}
  */
 public function __construct($options = null)
 {
     $pattern = 'production' == APPLICATION_ENV ? self::PRODUCTION_PATTERN : self::DEVELOPMENT_PATTERN;
     if (is_array($options)) {
         $options = array_merge($options, array('pattern' => $pattern));
     } else {
         $options = $pattern;
     }
     parent::__construct($options);
 }
Exemple #3
0
 public function __construct($options = null)
 {
     return parent::__construct(array_merge(['message' => 'This is not a valid client_secret.', 'pattern' => '/^([\\x20-\\x7E]*)$/'], (array) $options));
 }
 public function __construct($options = null)
 {
     return parent::__construct(array_merge(['message' => 'This is not a valid error_description.', 'pattern' => '/^([\\x21\\x22-\\x5B\\x5D-\\x7E]+)$/'], (array) $options));
 }
Exemple #5
0
 public function __construct($options = null)
 {
     return parent::__construct(array_merge(['message' => 'This is not a valid expires_in.', 'pattern' => '/^([0-9]+)$/'], $options));
 }
 public function __construct($options = null)
 {
     return parent::__construct(array_merge(['message' => 'This is not a valid refresh_token.', 'pattern' => '/^([\\x20-\\x7E]+)$/'], (array) $options));
 }
Exemple #7
0
 /**
  * @param mixed $options
  * @return self
  */
 public function __construct($options = null)
 {
     $options['pattern'] = sprintf(self::VALIDATION_PATTERN, $this->buildPattern($this->getCountryPatterns()));
     parent::__construct($options);
 }
Exemple #8
0
 public function __construct($options = null)
 {
     return parent::__construct(array_merge(['message' => 'This is not a valid password.', 'pattern' => '/^([\\x09\\x20-\\x7E\\x80-\\x{D7FF}\\x{E000}-\\x{FFFD}\\x{10000}-\\x{10FFFF}]*)$/u'], (array) $options));
 }
 public function __construct($options = null)
 {
     return parent::__construct(array_merge(['message' => 'This is not a valid response_type.', 'pattern' => '/^([a-z0-9\\_]+)$/'], (array) $options));
 }
Exemple #10
0
 public function __construct($options = null)
 {
     return parent::__construct(array_merge(['message' => 'This is not a valid scope.', 'pattern' => '/^([\\x21\\x22-\\x5B\\x5D-\\x7E]+(?:\\s*[\\x21\\x22-\\x5B\\x5D-\\x7E]+(?R)*)*)$/'], (array) $options));
 }