Skip to content

Commit 60c7c8c

Browse files
committed
Add some missing deprecations related to forms
1 parent 7f4d867 commit 60c7c8c

File tree

10 files changed

+34
-4
lines changed

10 files changed

+34
-4
lines changed

src/Factory/FieldFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
use EasyCorp\Bundle\EasyAdminBundle\Field\TextareaField;
2020
use EasyCorp\Bundle\EasyAdminBundle\Field\TextField;
2121
use EasyCorp\Bundle\EasyAdminBundle\Field\TimeField;
22-
use EasyCorp\Bundle\EasyAdminBundle\Form\Type\EaFormRowType;
22+
use EasyCorp\Bundle\EasyAdminBundle\Form\Type\Layout\EaFormRowType;
2323
use EasyCorp\Bundle\EasyAdminBundle\Security\Permission;
2424
use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface;
2525

src/Field/Configurator/FormConfigurator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto;
88
use EasyCorp\Bundle\EasyAdminBundle\Dto\FieldDto;
99
use EasyCorp\Bundle\EasyAdminBundle\Field\FormField;
10-
use EasyCorp\Bundle\EasyAdminBundle\Form\Type\EaFormRowType;
10+
use EasyCorp\Bundle\EasyAdminBundle\Form\Type\Layout\EaFormRowType;
1111

1212
/**
1313
* @author Javier Eguiluz <[email protected]>

src/Field/FormField.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
namespace EasyCorp\Bundle\EasyAdminBundle\Field;
44

55
use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldInterface;
6-
use EasyCorp\Bundle\EasyAdminBundle\Form\Type\EaFormRowType;
76
use EasyCorp\Bundle\EasyAdminBundle\Form\Type\Layout\EaFormColumnOpenType;
87
use EasyCorp\Bundle\EasyAdminBundle\Form\Type\Layout\EaFormFieldsetOpenType;
8+
use EasyCorp\Bundle\EasyAdminBundle\Form\Type\Layout\EaFormRowType;
99
use EasyCorp\Bundle\EasyAdminBundle\Form\Type\Layout\EaFormTabPaneOpenType;
1010
use Symfony\Component\Uid\Ulid;
1111
use Symfony\Contracts\Translation\TranslatableInterface;

src/Form/Type/CrudFormType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace EasyCorp\Bundle\EasyAdminBundle\Form\Type;
44

5-
use ArrayObject;
65
use EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto;
76
use EasyCorp\Bundle\EasyAdminBundle\Dto\FieldDto;
87
use EasyCorp\Bundle\EasyAdminBundle\Field\FormField;
@@ -11,6 +10,7 @@
1110
use EasyCorp\Bundle\EasyAdminBundle\Form\Type\Layout\EaFormColumnOpenType;
1211
use EasyCorp\Bundle\EasyAdminBundle\Form\Type\Layout\EaFormFieldsetCloseType;
1312
use EasyCorp\Bundle\EasyAdminBundle\Form\Type\Layout\EaFormFieldsetOpenType;
13+
use EasyCorp\Bundle\EasyAdminBundle\Form\Type\Layout\EaFormRowType;
1414
use EasyCorp\Bundle\EasyAdminBundle\Form\Type\Layout\EaFormTabPaneCloseType;
1515
use EasyCorp\Bundle\EasyAdminBundle\Form\Type\Layout\EaFormTabPaneOpenType;
1616
use Symfony\Bridge\Doctrine\Form\DoctrineOrmTypeGuesser;

src/Form/Type/EaFormColumnType.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* some HTML tags and it must be added to a form as "unmapped" and "non required".
1111
*
1212
* @author Javier Eguiluz <[email protected]>
13+
*
14+
* @deprecated since 4.8.0, use the alternatives types in the 'EasyCorp\Bundle\EasyAdminBundle\Form\Type\Layout' namespace instead
1315
*/
1416
class EaFormColumnType extends AbstractType
1517
{

src/Form/Type/EaFormFieldsetType.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* some HTML tags and it must be added to a form as "unmapped" and "non required".
1111
*
1212
* @author Javier Eguiluz <[email protected]>
13+
*
14+
* @deprecated since 4.8.0, use the alternatives types in the 'EasyCorp\Bundle\EasyAdminBundle\Form\Type\Layout' namespace instead
1315
*/
1416
class EaFormFieldsetType extends AbstractType
1517
{

src/Form/Type/EaFormRowType.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* some HTML tags and it must be added to a form as "unmapped" and "non required".
1111
*
1212
* @author Javier Eguiluz <[email protected]>
13+
*
14+
* @deprecated since 4.8.0, use the equivalent form type in the new namespace: 'EasyCorp\Bundle\EasyAdminBundle\Form\Type\Layout\EaFormRowType'
1315
*/
1416
class EaFormRowType extends AbstractType
1517
{

src/Form/Type/EasyAdminGroupType.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* some HTML tags and it must be added to a form as "unmapped" and "non required".
1111
*
1212
* @author Javier Eguiluz <[email protected]>
13+
*
14+
* @deprecated since 4.8.0, use the alternatives types in the 'EasyCorp\Bundle\EasyAdminBundle\Form\Type\Layout' namespace instead
1315
*/
1416
class EasyAdminGroupType extends AbstractType
1517
{

src/Form/Type/EasyAdminTabType.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
* The 'tab' form type is a special form type used to display a design
99
* element needed to create complex form layouts. This "fake" type just displays
1010
* some HTML tags and it must be added to a form as "unmapped" and "non required".
11+
*
12+
* @deprecated since 4.8.0, use the alternatives types in the 'EasyCorp\Bundle\EasyAdminBundle\Form\Type\Layout' namespace instead
1113
*/
1214
class EasyAdminTabType extends AbstractType
1315
{
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
namespace EasyCorp\Bundle\EasyAdminBundle\Form\Type\Layout;
4+
5+
use Symfony\Component\Form\AbstractType;
6+
7+
/**
8+
* This is a special form type used to render the form layout when using form tabs.
9+
*
10+
* @author Javier Eguiluz <[email protected]>
11+
*
12+
* @internal don't use this type in your applications
13+
*/
14+
class EaFormRowType extends AbstractType
15+
{
16+
public function getBlockPrefix(): string
17+
{
18+
return 'ea_form_row';
19+
}
20+
}

0 commit comments

Comments
 (0)