Fixed Deprecations: EasyAdmin and Symfony Security
CI / Docker Lint (push) Successful in 31s

This commit is contained in:
2025-10-23 22:13:19 +02:00
parent 850e8afaa1
commit fe2bc7b78c
3 changed files with 12 additions and 10 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ class UserCrudController extends AbstractCrudController
->allowMultipleChoices(true);
yield FormField::addPanel('Set password')->setIcon('fa fa-key');
yield FormField::addFieldset('Set password')->setIcon('fa fa-key');
$fieldPassword = Field::new('plainPassword', 'New password')
->hideOnIndex()
+2
View File
@@ -4,6 +4,7 @@ namespace App\Entity;
use App\Enum\UserRoleEnum;
use App\Repository\UserRepository;
use Deprecated;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
use Symfony\Component\Security\Core\User\UserInterface;
@@ -120,6 +121,7 @@ class User implements UserInterface, PasswordAuthenticatedUserInterface
/**
* @see UserInterface
*/
#[Deprecated("Not used after Symfony 7.3")]
public function eraseCredentials(): void
{
// If you store any temporary, sensitive data on the user, clear it here
+1 -1
View File
@@ -1,7 +1,7 @@
{# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #}
{# @var field \EasyCorp\Bundle\EasyAdminBundle\Dto\FieldDto #}
{# @var entity \EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto #}
{% if ea.crud.currentAction == 'detail' %}
{% if ea().crud.currentAction == 'detail' %}
<div class="field-icon-div d-flex gap-3">
<span title="{{ field.value }}">{{ field.formattedValue|raw }}</span>
<div class="badge text-bg-secondary">