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

[Feature] Allow to define priority of crud controllers by getDefaultPriority method #5678

Open
wants to merge 4 commits into
base: 4.x
Choose a base branch
from

Conversation

timager
Copy link

@timager timager commented Mar 15, 2023

This changes allow define default priority method on controller's, it's need for case with multiple controllers on some entity, because give you way to selecting default controller (controller with least priority). Also other ways for specifing concrete controller stay available.

@timager timager force-pushed the feature/priority_for_controllers_in_pass branch from 43cd27b to 0fad64b Compare March 15, 2023 09:50
@bakhtiyor
Copy link

This feature is really important when an Entity is associated to several Controllers and EasyAdmin chooses only the last controller associated to it without possibility to choose the right Controller. Thanks for PR @timager

@javiereguiluz javiereguiluz added this to the 4.x milestone Apr 21, 2023
timager added 2 commits May 3, 2023 20:08
# Conflicts:
#	src/DependencyInjection/CreateControllerRegistriesPass.php
…_controllers_in_pass

# Conflicts:
#	src/Registry/CrudControllerRegistry.php
@javiereguiluz javiereguiluz added the priority: important Bugs to fix and features to implement label Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature priority: important Bugs to fix and features to implement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants