|
6 | 6 | use EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext; |
7 | 7 |
|
8 | 8 | /** |
9 | | - * Contract for services that dynamically modify EasyAdmin actions. |
10 | | - * |
11 | | - * Extensions are automatically discovered via DI tags and executed |
12 | | - * in priority order (defined in service tags) before security filters are applied. |
| 9 | + * Contract for services that modify EasyAdmin actions at runtime. |
13 | 10 | * |
14 | 11 | * @author Javier Eguiluz <[email protected]> |
15 | 12 | */ |
16 | 13 | interface ActionsExtensionInterface |
17 | 14 | { |
18 | | - /** |
19 | | - * Determines if this extension should be applied to the current context. |
20 | | - * Called before extend() to allow early bailout for performance. |
21 | | - * |
22 | | - * @param AdminContext $context the full admin context including CRUD controller, |
23 | | - * entity, page name, user, request, etc |
24 | | - * |
25 | | - * @return bool true if extend() should be called, false to skip this extension |
26 | | - */ |
27 | 15 | public function supports(AdminContext $context): bool; |
28 | 16 |
|
29 | | - /** |
30 | | - * Modifies the actions collection for the current CRUD page. |
31 | | - * The Actions collection is mutable and should be modified in place. |
32 | | - * This method does not return a value. |
33 | | - * |
34 | | - * Extensions should not throw exceptions during normal operation. |
35 | | - * Any exception will halt the action generation pipeline and return a 500 error. |
36 | | - * If your extension encounters an error, log it and skip the modification gracefully. |
37 | | - * |
38 | | - * @param Actions $actions The current actions collection (mutable) |
39 | | - * @param AdminContext $context The full admin context |
40 | | - */ |
41 | 17 | public function extend(Actions $actions, AdminContext $context): void; |
42 | 18 | } |
0 commit comments