Skip to content

Commit 6f492df

Browse files
committed
-
1 parent 1048eee commit 6f492df

File tree

1 file changed

+1
-25
lines changed

1 file changed

+1
-25
lines changed

src/Contracts/Action/ActionsExtensionInterface.php

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,37 +6,13 @@
66
use EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext;
77

88
/**
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.
1310
*
1411
* @author Javier Eguiluz <[email protected]>
1512
*/
1613
interface ActionsExtensionInterface
1714
{
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-
*/
2715
public function supports(AdminContext $context): bool;
2816

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-
*/
4117
public function extend(Actions $actions, AdminContext $context): void;
4218
}

0 commit comments

Comments
 (0)