ModuleActionEntry
One {Module}/Actions/...Action.php file found by ModuleActionDiscovery, before any attempt to load or reflect it.
Synopsis
Section titled “Synopsis”final class ModuleActionEntry
| Since | 1.0.0 |
| Source | Routing/Compiler/ModuleActionEntry.php |
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
$action | string | readonly. |
$file | string | readonly. |
$fqcn | string | readonly. |
$module | string | readonly. |
$moduleDir | string | readonly. |
Constructor
Section titled “Constructor”__construct()
Section titled “__construct()”public function __construct(string $module, string $action, string $file, string $fqcn, string $moduleDir): mixed
| Parameter | Type | Description |
|---|---|---|
$module | string | |
$action | string | |
$file | string | |
$fqcn | string | |
$moduleDir | string |
Returns mixed
Methods
Section titled “Methods”| Method | Description |
|---|---|
legacyClassName(): string | The pre-namespace legacy class name convention (Controller::createActionInstance()’s fallback), e.g. |
legacyClassName()
Section titled “legacyClassName()”public function legacyClassName(): string
The pre-namespace legacy class name convention (Controller::createActionInstance()’s fallback), e.g.
sample_SecureSimpleAction for module “sample”, action “SecureSimple”. Some actions — typically older fixtures/apps — are only ever defined this way and never gain a namespaced twin, so any “does this action class exist” check needs to try both names, not just fqcn.
Returns string