Closed Hanmac closed 1 year ago
This shouldn't be too hard to implements, the changes need to be done here: https://github.com/sonata-project/SonataAdminBundle/blob/4.x/src/DependencyInjection/Compiler/ExtensionCompilerPass.php
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Feature Request
Currently AdminExtension either can be:
global
ortarget
)implements
,uses
and other where it checks the ModelClass of the Admin.i would like more options available that i can use tag attributes to check if the AdminClass itself does extend/implement/uses a given class/interface/trait name.
A Possible Use Case would be if i make an Extension
AbcExt
, and say it should be added to all Admins that does implement InterfaceAbcInterface
.with that in place, the User only would need to implement that Interface, and the Extension would be added without the need of extra config.