diff --git a/validation.rst b/validation.rst index 847a73ddc63..412676a908b 100644 --- a/validation.rst +++ b/validation.rst @@ -132,7 +132,7 @@ returned. Take this simple example from inside a controller:: use App\Entity\Author; // ... - public function authorAction() + public function author() { $author = new Author(); diff --git a/validation/custom_constraint.rst b/validation/custom_constraint.rst index 23932f8f652..c93356c8d60 100644 --- a/validation/custom_constraint.rst +++ b/validation/custom_constraint.rst @@ -107,7 +107,7 @@ Using custom validators is very easy, just as the ones provided by Symfony itsel .. code-block:: yaml - # src/Resources/config/validation.yml + # config/validator/validation.yaml App\Entity\AcmeEntity: properties: name: @@ -116,7 +116,7 @@ Using custom validators is very easy, just as the ones provided by Symfony itsel .. code-block:: xml - + + diff --git a/validation/groups.rst b/validation/groups.rst index bbf482bda11..d1ddd0a924d 100644 --- a/validation/groups.rst +++ b/validation/groups.rst @@ -44,7 +44,7 @@ user registers and when a user updates their contact information later: .. code-block:: yaml - # src/Resources/config/validation.yml + # config/validator/validation.yaml App\Entity\User: properties: email: @@ -58,7 +58,7 @@ user registers and when a user updates their contact information later: .. code-block:: xml - + + + + + + @@ -105,12 +105,12 @@ Now, create a ``validators`` catalog file in the ``config/translations/`` direct .. code-block:: yaml - # config/translations/validators.en.yaml + # translations/validators.en.yaml author.name.not_blank: Please enter an author name. .. code-block:: php - // config/translations/validators.en.php + // translations/validators.en.php return array( 'author.name.not_blank' => 'Please enter an author name.', );