Skip to content

Commit 9077138

Browse files
committed
Fix namespace/filepath mismatches found by DOCtor-RST
- Fix Author filepath from src/EntityAuthor.php to src/Entity/Author.php - Fix User namespace from App\Entity\User to App\Entity - Fix FooExtractor filepath from src/Acme/DemoBundle/Translation to src/DemoBundle/Translation
1 parent 5b0433a commit 9077138

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

reference/constraints/Choice.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ If your valid choice list is simple, you can pass them in directly via the
8383
8484
.. code-block:: php
8585
86-
// src/EntityAuthor.php
86+
// src/Entity/Author.php
8787
namespace App\Entity;
8888
8989
use Symfony\Component\Validator\Constraints as Assert;
@@ -170,7 +170,7 @@ constraint.
170170
171171
.. code-block:: php
172172
173-
// src/EntityAuthor.php
173+
// src/Entity/Author.php
174174
namespace App\Entity;
175175
176176
use Symfony\Component\Validator\Constraints as Assert;

reference/constraints/Compound.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ You can now use it anywhere you need it:
5353
.. code-block:: php-attributes
5454
5555
// src/Entity/User.php
56-
namespace App\Entity\User;
56+
namespace App\Entity;
5757
5858
use App\Validator\Constraints as Assert;
5959
@@ -89,7 +89,7 @@ You can now use it anywhere you need it:
8989
.. code-block:: php
9090
9191
// src/Entity/User.php
92-
namespace App\Entity\User;
92+
namespace App\Entity;
9393
9494
use App\Validator\Constraints as Assert;
9595
use Symfony\Component\Validator\Mapping\ClassMetadata;

reference/dic_tags.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1101,7 +1101,7 @@ You can create your own extractor by creating a class that implements
11011101
and tagging the service with ``translation.extractor``. The tag has one
11021102
required option: ``alias``, which defines the name of the extractor::
11031103

1104-
// src/Acme/DemoBundle/Translation/FooExtractor.php
1104+
// src/DemoBundle/Translation/FooExtractor.php
11051105
namespace Acme\DemoBundle\Translation;
11061106

11071107
use Symfony\Component\Translation\Extractor\ExtractorInterface;

0 commit comments

Comments
 (0)