8000 Missing Namespace and comment by TheGarious · Pull Request #14345 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Missing Namespace and comment #14345

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

Merged
Merged
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
6 changes: 6 additions & 0 deletions validation/custom_constraint.rst
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ You can use custom validators like the ones provided by Symfony itself:
.. code-block:: php-annotations

// src/Entity/AcmeEntity.php
namespace App\Entity;

use App\Validator\Constraints as AcmeAssert;
use Symfony\Component\Validator\Constraints as Assert;

Expand Down Expand Up @@ -159,6 +161,8 @@ You can use custom validators like the ones provided by Symfony itself:
.. code-block:: php

// src/Entity/AcmeEntity.php
namespace App\Entity;

use App\Validator\Constraints\ContainsAlphanumeric;
use Symfony\Component\Validator\Constraints\NotBlank;
use Symfony\Component\Validator\Mapping\ClassMetadata;
Expand Down Expand Up @@ -249,6 +253,8 @@ not to the property:
.. code-block:: php

// src/Entity/AcmeEntity.php
namespace App\Entity;

use App\Validator\Constraints\ProtocolClass;
use Symfony\Component\Validator\Mapping\ClassMetadata;

Expand Down
3 changes: 3 additions & 0 deletions validation/sequence_provider.rst
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ that group are valid, the second group, ``Strict``, will be validated.

You can also define a group sequence in the ``validation_groups`` form option::

// src/Form/MyType.php
namespace App\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Validator\Constraints\GroupSequence;
Expand Down
3 changes: 3 additions & 0 deletions validation/translations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ property is not empty, add the following:
.. code-block:: php-annotations

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

use Symfony\Component\Validator\Constraints as Assert;

class Author
Expand Down Expand Up @@ -67,6 +69,7 @@ property is not empty, add the following:
.. code-block:: php

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

// ...
use Symfony\Component\Validator\Constraints\NotBlank;
Expand Down
0