From fe7aa8bcfb9a9ab56efc0e44caffddec072306a3 Mon Sep 17 00:00:00 2001 From: WouterJ Date: Thu, 20 Aug 2015 23:26:38 +0200 Subject: [PATCH 01/10] Updated Constraint reference with best practices --- reference/constraints/All.rst | 16 +++--- reference/constraints/Blank.rst | 16 +++--- reference/constraints/Callback.rst | 42 +++++++-------- reference/constraints/CardScheme.rst | 16 +++--- reference/constraints/Choice.rst | 52 +++++++++---------- reference/constraints/Collection.rst | 36 ++++++------- reference/constraints/Count.rst | 16 +++--- reference/constraints/Country.rst | 16 +++--- reference/constraints/Currency.rst | 16 +++--- reference/constraints/Date.rst | 16 +++--- reference/constraints/DateTime.rst | 16 +++--- reference/constraints/Email.rst | 16 +++--- reference/constraints/EqualTo.rst | 16 +++--- reference/constraints/False.rst | 16 +++--- reference/constraints/File.rst | 20 ++++---- reference/constraints/GreaterThan.rst | 16 +++--- reference/constraints/GreaterThanOrEqual.rst | 16 +++--- reference/constraints/Iban.rst | 16 +++--- reference/constraints/IdenticalTo.rst | 16 +++--- reference/constraints/Image.rst | 20 ++++---- reference/constraints/Ip.rst | 16 +++--- reference/constraints/Isbn.rst | 16 +++--- reference/constraints/Issn.rst | 16 +++--- reference/constraints/Language.rst | 16 +++--- reference/constraints/Length.rst | 16 +++--- reference/constraints/LessThan.rst | 16 +++--- reference/constraints/LessThanOrEqual.rst | 16 +++--- reference/constraints/Locale.rst | 16 +++--- reference/constraints/Luhn.rst | 16 +++--- reference/constraints/NotBlank.rst | 16 +++--- reference/constraints/NotEqualTo.rst | 16 +++--- reference/constraints/NotIdenticalTo.rst | 16 +++--- reference/constraints/NotNull.rst | 16 +++--- reference/constraints/Null.rst | 16 +++--- reference/constraints/Range.rst | 16 +++--- reference/constraints/Regex.rst | 48 ++++++++--------- reference/constraints/Time.rst | 16 +++--- reference/constraints/True.rst | 18 +++---- reference/constraints/Type.rst | 16 +++--- reference/constraints/UniqueEntity.rst | 34 ++++++------ reference/constraints/Url.rst | 48 ++++++++--------- reference/constraints/UserPassword.rst | 16 +++--- reference/constraints/Valid.rst | 54 ++++++++++---------- 43 files changed, 450 insertions(+), 450 deletions(-) diff --git a/reference/constraints/All.rst b/reference/constraints/All.rst index 34a59dfc9fe..157827df0cf 100644 --- a/reference/constraints/All.rst +++ b/reference/constraints/All.rst @@ -24,8 +24,8 @@ entry in that array: .. code-block:: php-annotations - // src/Acme/UserBundle/Entity/User.php - namespace Acme\UserBundle\Entity; + // src/AppBundle/Entity/User.php + namespace AppBundle\Entity; use Symfony\Component\Validator\Constraints as Assert; @@ -42,8 +42,8 @@ entry in that array: .. code-block:: yaml - # src/Acme/UserBundle/Resources/config/validation.yml - Acme\UserBundle\Entity\User: + # src/AppBundle/Resources/config/validation.yml + AppBundle\Entity\User: properties: favoriteColors: - All: @@ -53,13 +53,13 @@ entry in that array: .. code-block:: xml - + - +