Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make file path consitent with other articles #5799

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions book/forms.rst
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ object.

.. code-block:: php-annotations

// AppBundle/Entity/Task.php
// src/AppBundle/Entity/Task.php
use Symfony\Component\Validator\Constraints as Assert;

class Task
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that you are at it: Could you please also add the namespace?

Expand All @@ -373,7 +373,7 @@ object.

.. code-block:: yaml

# AppBundle/Resources/config/validation.yml
# src/AppBundle/Resources/config/validation.yml
AppBundle\Entity\Task:
properties:
task:
Expand All @@ -384,7 +384,7 @@ object.

.. code-block:: xml

<!-- AppBundle/Resources/config/validation.xml -->
<!-- src/AppBundle/Resources/config/validation.xml -->
<?xml version="1.0" encoding="UTF-8"?>
<constraint-mapping xmlns="http://symfony.com/schema/dic/constraint-mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Expand All @@ -404,7 +404,7 @@ object.

.. code-block:: php

// AppBundle/Entity/Task.php
// src/AppBundle/Entity/Task.php
use Symfony\Component\Validator\Mapping\ClassMetadata;
use Symfony\Component\Validator\Constraints\NotBlank;
use Symfony\Component\Validator\Constraints\Type;
Expand Down
2 changes: 1 addition & 1 deletion book/validation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ class to have at least 3 characters.

.. code-block:: php-annotations

// AppBundle/Entity/Author.php
// src/AppBundle/Entity/Author.php

// ...
use Symfony\Component\Validator\Constraints as Assert;
Expand Down
5 changes: 2 additions & 3 deletions reference/constraints/UniqueEntity.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ your user table:

.. code-block:: php-annotations

// AppBundle/Entity/Author.php
// src/AppBundle/Entity/Author.php
namespace AppBundle\Entity;

use Symfony\Component\Validator\Constraints as Assert;
Expand Down Expand Up @@ -89,8 +89,7 @@ your user table:

.. code-block:: php


// AppBundle/Entity/User.php
// src/AppBundle/Entity/User.php
namespace AppBundle\Entity;

use Symfony\Component\Validator\Constraints as Assert;
Expand Down