From d54b6a7c8cd73140497f4970019ceb1b3f064a4f Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Thu, 6 Feb 2025 20:42:47 +0100 Subject: [PATCH] Mark all controller registries as deprecated --- src/Registry/CrudControllerRegistry.php | 2 ++ src/Registry/DashboardControllerRegistry.php | 3 +++ src/Registry/DashboardControllerRegistryInterface.php | 3 +++ 3 files changed, 8 insertions(+) diff --git a/src/Registry/CrudControllerRegistry.php b/src/Registry/CrudControllerRegistry.php index 1bcad70ded..c502aa7b2f 100644 --- a/src/Registry/CrudControllerRegistry.php +++ b/src/Registry/CrudControllerRegistry.php @@ -4,6 +4,8 @@ /** * @author Javier Eguiluz + * + * @deprecated since 4.25.0, will be removed in EasyAdmin 5.0.0. This registry is generally not needed by developers in newer versions of EasyAdmin. If you require similar functionality, use the equivalent item in the Symfony Cache pool managed by EasyAdmin (inject the "cache.easyadmin" service). */ final class CrudControllerRegistry { diff --git a/src/Registry/DashboardControllerRegistry.php b/src/Registry/DashboardControllerRegistry.php index 3596834a4e..69cb7daba0 100644 --- a/src/Registry/DashboardControllerRegistry.php +++ b/src/Registry/DashboardControllerRegistry.php @@ -5,6 +5,9 @@ use EasyCorp\Bundle\EasyAdminBundle\Cache\CacheWarmer; use function Symfony\Component\String\u; +/** + * @deprecated since 4.25.0, will be removed in EasyAdmin 5.0.0. This registry is generally not needed by developers in newer versions of EasyAdmin. If you require similar functionality, use the equivalent item in the Symfony Cache pool managed by EasyAdmin (inject the "cache.easyadmin" service). + */ final class DashboardControllerRegistry implements DashboardControllerRegistryInterface { private array $controllerFqcnToRouteMap = []; diff --git a/src/Registry/DashboardControllerRegistryInterface.php b/src/Registry/DashboardControllerRegistryInterface.php index e252ba75d5..9141ce8f84 100644 --- a/src/Registry/DashboardControllerRegistryInterface.php +++ b/src/Registry/DashboardControllerRegistryInterface.php @@ -2,6 +2,9 @@ namespace EasyCorp\Bundle\EasyAdminBundle\Registry; +/** + * @deprecated since 4.25.0, will be removed in EasyAdmin 5.0.0. This registry is generally not needed by developers in newer versions of EasyAdmin. + */ interface DashboardControllerRegistryInterface { public function getControllerFqcnByContextId(string $contextId): ?string;