Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0bdf372

Browse filesBrowse files
committed
Merge branch '6.2' into 6.3
* 6.2: [Form] Reorder imports alphabetically
2 parents 29144ca + 1b06e06 commit 0bdf372
Copy full SHA for 0bdf372

File tree

1 file changed

+9
-9
lines changed
Filter options

1 file changed

+9
-9
lines changed

‎components/form.rst

Copy file name to clipboardExpand all lines: components/form.rst
+9-9Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -389,8 +389,8 @@ is created from the form factory.
389389

390390
.. code-block:: php-standalone
391391
392-
use Symfony\Component\Form\Extension\Core\Type\TextType;
393392
use Symfony\Component\Form\Extension\Core\Type\DateType;
393+
use Symfony\Component\Form\Extension\Core\Type\TextType;
394394
395395
// ...
396396
@@ -409,9 +409,9 @@ is created from the form factory.
409409
namespace App\Controller;
410410
411411
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
412-
use Symfony\Component\HttpFoundation\Request;
413-
use Symfony\Component\Form\Extension\Core\Type\TextType;
414412
use Symfony\Component\Form\Extension\Core\Type\DateType;
413+
use Symfony\Component\Form\Extension\Core\Type\TextType;
414+
use Symfony\Component\HttpFoundation\Request;
415415
416416
class TaskController extends AbstractController
417417
{
@@ -449,9 +449,9 @@ an "edit" form), pass in the default data when creating your form builder:
449449

450450
.. code-block:: php-standalone
451451
452+
use Symfony\Component\Form\Extension\Core\Type\DateType;
452453
use Symfony\Component\Form\Extension\Core\Type\FormType;
453454
use Symfony\Component\Form\Extension\Core\Type\TextType;
454-
use Symfony\Component\Form\Extension\Core\Type\DateType;
455455
456456
// ...
457457
@@ -470,8 +470,8 @@ an "edit" form), pass in the default data when creating your form builder:
470470
namespace App\Controller;
471471
472472
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
473-
use Symfony\Component\Form\Extension\Core\Type\TextType;
474473
use Symfony\Component\Form\Extension\Core\Type\DateType;
474+
use Symfony\Component\Form\Extension\Core\Type\TextType;
475475
476476
class DefaultController extends AbstractController
477477
{
@@ -674,10 +674,10 @@ option when building each field:
674674

675675
.. code-block:: php-standalone
676676
677+
use Symfony\Component\Form\Extension\Core\Type\DateType;
678+
use Symfony\Component\Form\Extension\Core\Type\TextType;
677679
use Symfony\Component\Validator\Constraints\NotBlank;
678680
use Symfony\Component\Validator\Constraints\Type;
679-
use Symfony\Component\Form\Extension\Core\Type\TextType;
680-
use Symfony\Component\Form\Extension\Core\Type\DateType;
681681
682682
$form = $formFactory->createBuilder()
683683
->add('task', TextType::class, [
@@ -697,10 +697,10 @@ option when building each field:
697697
namespace App\Controller;
698698
699699
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
700-
use Symfony\Component\Validator\Constraints\NotBlank;
701-
use Symfony\Component\Validator\Constraints\Type;
702700
use Symfony\Component\Form\Extension\Core\Type\DateType;
703701
use Symfony\Component\Form\Extension\Core\Type\TextType;
702+
use Symfony\Component\Validator\Constraints\NotBlank;
703+
use Symfony\Component\Validator\Constraints\Type;
704704
705705
class DefaultController extends AbstractController
706706
{

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.