Skip to content

Commit f128dc9

Browse files
turegjorupclaude
andcommitted
6654: Upgrade to easyadmin-bundle 5.x and doctrine-migrations-bundle 4.x
Upgrade easycorp/easyadmin-bundle from 4.x to 5.x and doctrine/doctrine-migrations-bundle from 3.x to 4.x. EasyAdmin 5 breaking changes addressed: - Add #[AdminDashboard] attribute, remove #[Route] from index() - Replace MenuItem::linkToCrud() with MenuItem::linkTo() - Update FieldInterface::new() signature in all 14 custom fields - Replace CrudControllerRegistry with AdminControllerRegistryInterface - Replace ea. global variable with ea() function in templates Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 751efa2 commit f128dc9

26 files changed

Lines changed: 112 additions & 111 deletions

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"doctrine/doctrine-bundle": "^3.2",
1414
"doctrine/doctrine-migrations-bundle": "^4.0",
1515
"doctrine/orm": "^3.0",
16-
"easycorp/easyadmin-bundle": "^4.0",
16+
"easycorp/easyadmin-bundle": "^5.0",
1717
"itk-dev/openid-connect-bundle": "^4.0",
1818
"itk-dev/vault-bundle": "^0.1.0",
1919
"nelmio/cors-bundle": "^2.2",

composer.lock

Lines changed: 51 additions & 49 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Admin/Field/AdvisoryCountField.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66

77
use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldInterface;
88
use EasyCorp\Bundle\EasyAdminBundle\Field\FieldTrait;
9+
use Symfony\Contracts\Translation\TranslatableInterface;
910

1011
class AdvisoryCountField implements FieldInterface
1112
{
1213
use FieldTrait;
1314

14-
public static function new(string $propertyName, ?string $label = null): self
15+
public static function new(string $propertyName, TranslatableInterface|string|bool|null $label = null): self
1516
{
1617
return (new self())
1718
->setProperty($propertyName)

src/Admin/Field/ChangesField.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66

77
use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldInterface;
88
use EasyCorp\Bundle\EasyAdminBundle\Field\FieldTrait;
9+
use Symfony\Contracts\Translation\TranslatableInterface;
910

1011
class ChangesField implements FieldInterface
1112
{
1213
use FieldTrait;
1314

14-
public static function new(string $propertyName, ?string $label = null): self
15+
public static function new(string $propertyName, TranslatableInterface|string|bool|null $label = null): self
1516
{
1617
return (new self())
1718
->setProperty($propertyName)

src/Admin/Field/ClonedByField.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66

77
use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldInterface;
88
use EasyCorp\Bundle\EasyAdminBundle\Field\FieldTrait;
9+
use Symfony\Contracts\Translation\TranslatableInterface;
910

1011
class ClonedByField implements FieldInterface
1112
{
1213
use FieldTrait;
1314

14-
public static function new(string $propertyName, ?string $label = null): self
15+
public static function new(string $propertyName, TranslatableInterface|string|bool|null $label = null): self
1516
{
1617
return (new self())
1718
->setProperty($propertyName)

src/Admin/Field/ConfigFilePathField.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66

77
use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldInterface;
88
use EasyCorp\Bundle\EasyAdminBundle\Field\FieldTrait;
9+
use Symfony\Contracts\Translation\TranslatableInterface;
910

1011
class ConfigFilePathField implements FieldInterface
1112
{
1213
use FieldTrait;
1314

14-
public static function new(string $propertyName, ?string $label = null): self
15+
public static function new(string $propertyName, TranslatableInterface|string|bool|null $label = null): self
1516
{
1617
return (new self())
1718
->setProperty($propertyName)

src/Admin/Field/DomainField.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66

77
use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldInterface;
88
use EasyCorp\Bundle\EasyAdminBundle\Field\FieldTrait;
9+
use Symfony\Contracts\Translation\TranslatableInterface;
910

1011
class DomainField implements FieldInterface
1112
{
1213
use FieldTrait;
1314

14-
public static function new(string $propertyName, ?string $label = null): self
15+
public static function new(string $propertyName, TranslatableInterface|string|bool|null $label = null): self
1516
{
1617
return (new self())
1718
->setProperty($propertyName)

src/Admin/Field/EolTypeField.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66

77
use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldInterface;
88
use EasyCorp\Bundle\EasyAdminBundle\Field\FieldTrait;
9+
use Symfony\Contracts\Translation\TranslatableInterface;
910

1011
class EolTypeField implements FieldInterface
1112
{
1213
use FieldTrait;
1314

14-
public static function new(string $propertyName, ?string $label = null): self
15+
public static function new(string $propertyName, TranslatableInterface|string|bool|null $label = null): self
1516
{
1617
return (new self())
1718
->setProperty($propertyName)

src/Admin/Field/LatestStatusField.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66

77
use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldInterface;
88
use EasyCorp\Bundle\EasyAdminBundle\Field\FieldTrait;
9+
use Symfony\Contracts\Translation\TranslatableInterface;
910

1011
class LatestStatusField implements FieldInterface
1112
{
1213
use FieldTrait;
1314

14-
public static function new(string $propertyName, ?string $label = null): self
15+
public static function new(string $propertyName, TranslatableInterface|string|bool|null $label = null): self
1516
{
1617
return (new self())
1718
->setProperty($propertyName)

src/Admin/Field/RootDirField.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66

77
use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldInterface;
88
use EasyCorp\Bundle\EasyAdminBundle\Field\FieldTrait;
9+
use Symfony\Contracts\Translation\TranslatableInterface;
910

1011
class RootDirField implements FieldInterface
1112
{
1213
use FieldTrait;
1314

14-
public static function new(string $propertyName, ?string $label = null): self
15+
public static function new(string $propertyName, TranslatableInterface|string|bool|null $label = null): self
1516
{
1617
return (new self())
1718
->setProperty($propertyName)

0 commit comments

Comments
 (0)