This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/Validator/Constraints
Fabien Potencier e44141162e merged branch merk/card-scheme-validator (PR #5072)
This PR was merged into the master branch.

Commits
-------

e2aa79b Added CardScheme validator

Discussion
----------

[2.2] [Validator] Added CardScheme validator

Bug fix: no
Feature addition: yes
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets:
Todo: Adding documentation
License of the code: MIT

CardScheme separated into its own PR from #4734 as requested by @fabpot

---------------------------------------------------------------------------

by fabpot at 2012-10-05T17:08:24Z

As far I understand the discussion on #4734, a few people seemed to be concerned about the usefulness of adding such a validator in Symfony core. Anyone wanting to give his point of view? Personally, I'm -0 on merging this.

---------------------------------------------------------------------------

by merk at 2012-10-05T22:27:05Z

There are circumstances where such logic is required, and it could be desired by the programmer to filter out valid cards for a payment gateway before sending a request.

However, this is already included in JMSPaymentBundle if people don't think it should be in core.
2012-10-27 18:56:40 +02:00
..
Collection [Validator] Moved Optional and Required constraints to dedicated sub namespace. 2012-01-16 11:30:56 +01:00
All.php [Validator] Improved error messages displayed when the Valid constraint is misused 2012-07-11 18:23:09 +02:00
AllValidator.php [Validator] Added inheritDoc phpdoc for validate methods 2012-07-14 17:42:20 -07:00
Blank.php Added missing dot to translation messages. 2012-04-13 21:43:24 +02:00
BlankValidator.php [Validator] Added inheritDoc phpdoc for validate methods 2012-07-14 17:42:20 -07:00
Callback.php [Validator] tagged the public @api 2011-07-20 10:37:57 +02:00
CallbackValidator.php [Validator] Added inheritDoc phpdoc for validate methods 2012-07-14 17:42:20 -07:00
CardScheme.php Added CardScheme validator 2012-07-27 09:25:56 +10:00
CardSchemeValidator.php Added CardScheme validator 2012-07-27 09:25:56 +10:00
Choice.php Added missing dot to translation messages. 2012-04-13 21:43:24 +02:00
ChoiceValidator.php [Validator] Added inheritDoc phpdoc for validate methods 2012-07-14 17:42:20 -07:00
Collection.php [Validator] Improved error messages displayed when the Valid constraint is misused 2012-07-11 18:23:09 +02:00
CollectionValidator.php Code cleanup 2012-10-22 10:37:12 -04:00
Count.php [Validator] Removed MinCount and MaxCount and replaced them by the constraint Count 2012-07-11 19:47:53 +02:00
Country.php Added missing dot to translation messages. 2012-04-13 21:43:24 +02:00
CountryValidator.php [Validator] Added inheritDoc phpdoc for validate methods 2012-07-14 17:42:20 -07:00
CountValidator.php [Validator] Added inheritDoc phpdoc for validate methods 2012-07-14 17:42:20 -07:00
Date.php Added missing dot to translation messages. 2012-04-13 21:43:24 +02:00
DateTime.php Added missing dot to translation messages. 2012-04-13 21:43:24 +02:00
DateTimeValidator.php [Validator] Removed return value from ConstraintValidatorInterface::isValid() 2012-04-17 16:46:43 +02:00
DateValidator.php [Validator] Added inheritDoc phpdoc for validate methods 2012-07-14 17:42:20 -07:00
Email.php Added missing dot to translation messages. 2012-04-13 21:43:24 +02:00
EmailValidator.php [Validator] Added inheritDoc phpdoc for validate methods 2012-07-14 17:42:20 -07:00
False.php Added missing dot to translation messages. 2012-04-13 21:43:24 +02:00
FalseValidator.php [Validator] Added inheritDoc phpdoc for validate methods 2012-07-14 17:42:20 -07:00
File.php separate numeric value from suffix in File constraint's error message $uploadIniSizeErrorMessage 2012-05-11 23:15:32 +02:00
FileValidator.php [Validator] Added inheritDoc phpdoc for validate methods 2012-07-14 17:42:20 -07:00
GroupSequence.php Fixing email 2012-05-26 09:48:33 +02:00
GroupSequenceProvider.php [Validator] GroupSequenceProvider tests improved, configuration changed 2012-02-02 20:27:50 +01:00
Image.php Added missing dot to translation messages. 2012-04-13 21:43:24 +02:00
ImageValidator.php [Validator] Added inheritDoc phpdoc for validate methods 2012-07-14 17:42:20 -07:00
Ip.php fixed CS 2012-07-09 14:54:20 +02:00
IpValidator.php [Validator] Added inheritDoc phpdoc for validate methods 2012-07-14 17:42:20 -07:00
Language.php Added missing dot to translation messages. 2012-04-13 21:43:24 +02:00
LanguageValidator.php [Validator] Added inheritDoc phpdoc for validate methods 2012-07-14 17:42:20 -07:00
Length.php [Validator] Added Length constraint and deprecated MinLength and MaxLength 2012-07-11 19:48:02 +02:00
LengthValidator.php [Validator] Added inheritDoc phpdoc for validate methods 2012-07-14 17:42:20 -07:00
Locale.php Added missing dot to translation messages. 2012-04-13 21:43:24 +02:00
LocaleValidator.php [Validator] Added inheritDoc phpdoc for validate methods 2012-07-14 17:42:20 -07:00
Luhn.php Add Luhn validator 2012-07-27 09:26:41 +10:00
LuhnValidator.php Add Luhn validator 2012-07-27 09:26:41 +10:00
Max.php [Validator] Deprecated the constraints Min and Max in favor of Range 2012-07-11 19:48:02 +02:00
MaxLength.php [Validator] Added Length constraint and deprecated MinLength and MaxLength 2012-07-11 19:48:02 +02:00
MaxLengthValidator.php [Validator] Added inheritDoc phpdoc for validate methods 2012-07-14 17:42:20 -07:00
MaxValidator.php [Validator] Added inheritDoc phpdoc for validate methods 2012-07-14 17:42:20 -07:00
Min.php [Validator] Deprecated the constraints Min and Max in favor of Range 2012-07-11 19:48:02 +02:00
MinLength.php [Validator] Added Length constraint and deprecated MinLength and MaxLength 2012-07-11 19:48:02 +02:00
MinLengthValidator.php [Validator] Added inheritDoc phpdoc for validate methods 2012-07-14 17:42:20 -07:00
MinValidator.php [Validator] Deprecated the constraints Min and Max in favor of Range 2012-07-11 19:48:02 +02:00
NotBlank.php Added missing dot to translation messages. 2012-04-13 21:43:24 +02:00
NotBlankValidator.php [Validator] Added inheritDoc phpdoc for validate methods 2012-07-14 17:42:20 -07:00
NotNull.php Added missing dot to translation messages. 2012-04-13 21:43:24 +02:00
NotNullValidator.php [Validator] Added inheritDoc phpdoc for validate methods 2012-07-14 17:42:20 -07:00
Null.php Added missing dot to translation messages. 2012-04-13 21:43:24 +02:00
NullValidator.php [Validator] Added inheritDoc phpdoc for validate methods 2012-07-14 17:42:20 -07:00
Range.php Typo fix 2012-09-17 11:30:49 +04:00
RangeValidator.php [Validator] Added inheritDoc phpdoc for validate methods 2012-07-14 17:42:20 -07:00
Regex.php Issue #5307: HTML regexp when match is false 2012-08-30 11:53:07 +02:00
RegexValidator.php [Validator] Added inheritDoc phpdoc for validate methods 2012-07-14 17:42:20 -07:00
Time.php Added missing dot to translation messages. 2012-04-13 21:43:24 +02:00
TimeValidator.php [Validator] Added inheritDoc phpdoc for validate methods 2012-07-14 17:42:20 -07:00
True.php Added missing dot to translation messages. 2012-04-13 21:43:24 +02:00
TrueValidator.php [Validator] remove return value in TrueValidator 2012-07-19 23:47:59 +03:00
Type.php Added missing dot to translation messages. 2012-04-13 21:43:24 +02:00
TypeValidator.php [Validator] Added inheritDoc phpdoc for validate methods 2012-07-14 17:42:20 -07:00
Url.php Added missing dot to translation messages. 2012-04-13 21:43:24 +02:00
UrlValidator.php [Validator] Added inheritDoc phpdoc for validate methods 2012-07-14 17:42:20 -07:00
Valid.php [Validator] Improved error messages displayed when the Valid constraint is misused 2012-07-11 18:23:09 +02:00