@@ -35,8 +35,8 @@ Configuration
3535
3636 .. code-block :: php-annotations
3737
38- // src/AppBundle/ Entity/Author.php
39- namespace AppBundle \Entity;
38+ // src/Entity/Author.php
39+ namespace App \Entity;
4040
4141 use Symfony\Component\Validator\Constraints as Assert;
4242 use Symfony\Component\Validator\Context\ExecutionContextInterface;
@@ -54,28 +54,28 @@ Configuration
5454
5555 .. code-block :: yaml
5656
57- # src/AppBundle/ Resources/config/validation.yml
58- AppBundle \Entity\Author :
57+ # src/Resources/config/validation.yml
58+ App \Entity\Author :
5959 constraints :
6060 - Callback : validate
6161
6262 .. code-block :: xml
6363
64- <!-- src/AppBundle/ Resources/config/validation.xml -->
64+ <!-- src/Resources/config/validation.xml -->
6565 <?xml version =" 1.0" encoding =" UTF-8" ?>
6666 <constraint-mapping xmlns =" http://symfony.com/schema/dic/constraint-mapping"
6767 xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
6868 xsi : schemaLocation =" http://symfony.com/schema/dic/constraint-mapping http://symfony.com/schema/dic/constraint-mapping/constraint-mapping-1.0.xsd" >
6969
70- <class name =" AppBundle \Entity\Author" >
70+ <class name =" App \Entity\Author" >
7171 <constraint name =" Callback" >validate</constraint >
7272 </class >
7373 </constraint-mapping >
7474
7575 .. code-block :: php
7676
77- // src/AppBundle/ Entity/Author.php
78- namespace AppBundle \Entity;
77+ // src/Entity/Author.php
78+ namespace App \Entity;
7979
8080 use Symfony\Component\Validator\Mapping\ClassMetadata;
8181 use Symfony\Component\Validator\Constraints as Assert;
@@ -163,8 +163,8 @@ You can then use the following configuration to invoke this validator:
163163
164164 .. code-block :: php-annotations
165165
166- // src/AppBundle/ Entity/Author.php
167- namespace AppBundle \Entity;
166+ // src/Entity/Author.php
167+ namespace App \Entity;
168168
169169 use Symfony\Component\Validator\Constraints as Assert;
170170
@@ -177,20 +177,20 @@ You can then use the following configuration to invoke this validator:
177177
178178 .. code-block :: yaml
179179
180- # src/AppBundle/ Resources/config/validation.yml
181- AppBundle \Entity\Author :
180+ # src/Resources/config/validation.yml
181+ App \Entity\Author :
182182 constraints :
183183 - Callback : [Acme\Validator, validate]
184184
185185 .. code-block :: xml
186186
187- <!-- src/AppBundle/ Resources/config/validation.xml -->
187+ <!-- src/Resources/config/validation.xml -->
188188 <?xml version =" 1.0" encoding =" UTF-8" ?>
189189 <constraint-mapping xmlns =" http://symfony.com/schema/dic/constraint-mapping"
190190 xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
191191 xsi : schemaLocation =" http://symfony.com/schema/dic/constraint-mapping http://symfony.com/schema/dic/constraint-mapping/constraint-mapping-1.0.xsd" >
192192
193- <class name =" AppBundle \Entity\Author" >
193+ <class name =" App \Entity\Author" >
194194 <constraint name =" Callback" >
195195 <value >Acme\Validator</value >
196196 <value >validate</value >
@@ -200,8 +200,8 @@ You can then use the following configuration to invoke this validator:
200200
201201 .. code-block :: php
202202
203- // src/AppBundle/ Entity/Author.php
204- namespace AppBundle \Entity;
203+ // src/Entity/Author.php
204+ namespace App \Entity;
205205
206206 use Acme\Validator;
207207 use Symfony\Component\Validator\Mapping\ClassMetadata;
@@ -229,8 +229,8 @@ You can then use the following configuration to invoke this validator:
229229When configuring the constraint via PHP, you can also pass a closure to the
230230constructor of the Callback constraint::
231231
232- // src/AppBundle/ Entity/Author.php
233- namespace AppBundle \Entity;
232+ // src/Entity/Author.php
233+ namespace App \Entity;
234234
235235 use Symfony\Component\Validator\Context\ExecutionContextInterface;
236236
0 commit comments