Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark all controller registries as deprecated #6802

Open
wants to merge 1 commit into
base: 4.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/Registry/CrudControllerRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

/**
* @author Javier Eguiluz <javier.eguiluz@gmail.com>
*
* @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
{
Expand Down
3 changes: 3 additions & 0 deletions src/Registry/DashboardControllerRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
Expand Down
3 changes: 3 additions & 0 deletions src/Registry/DashboardControllerRegistryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down