Bristol SU Support Package
|
Public Member Functions | |
registerAction (string $class, string $name, string $description) | |
all () | |
fromClass (string $class) | |
Stores action classes and raw metadata
Definition at line 8 of file ActionManager.php.
BristolSU\Support\Action\Contracts\ActionManager::all | ( | ) |
BristolSU\Support\Action\Contracts\ActionManager::fromClass | ( | string | $class | ) |
Return an action registered with the given class.
string | $class | Class of the action |
Implemented in BristolSU\Support\Action\ActionManager.
BristolSU\Support\Action\Contracts\ActionManager::registerAction | ( | string | $class, |
string | $name, | ||
string | $description | ||
) |
Register an action to be used.
An action is any class that implements the Action interface. Call the registerAction method in the service provider to register an action.
string | $class | Class name of the action. |
string | $name | A name for the action. |
string | $description | A description of the action. |
Implemented in BristolSU\Support\Action\ActionManager.