diff --git a/validation.rst b/validation.rst index 30de658c959..ebb13a90868 100644 --- a/validation.rst +++ b/validation.rst @@ -59,7 +59,7 @@ following: .. code-block:: yaml - # src/Resources/config/validation.yml + # config/validator/validation.yaml App\Entity\Author: properties: name: @@ -67,7 +67,7 @@ following: .. code-block:: xml - + + loadFromExtension('framework', array( 'validation' => array( 'enabled' => true, @@ -250,13 +250,13 @@ previous configuration by the following: .. code-block:: yaml - # app/config/config.yml + # config/packages/framework.yml framework: validation: { enable_annotations: true } .. code-block:: xml - + loadFromExtension('framework', array( 'validation' => array( 'enable_annotations' => true, @@ -346,7 +346,7 @@ literature genre mostly associated with the author, which can be set to either .. code-block:: yaml - # src/Resources/config/validation.yml + # config/validator/validation.yaml App\Entity\Author: properties: genre: @@ -355,7 +355,7 @@ literature genre mostly associated with the author, which can be set to either .. code-block:: xml - + + + + + + @@ -105,12 +105,12 @@ Now, create a ``validators`` catalog file in the ``app/Resources/translations`` .. code-block:: yaml - # app/Resources/translations/validators.en.yml + # config/translations/validators.en.yaml author.name.not_blank: Please enter an author name. .. code-block:: php - // app/Resources/translations/validators.en.php + // config/translations/validators.en.php return array( 'author.name.not_blank' => 'Please enter an author name.', );