Skip to content

ModuleActionEntry

One {Module}/Actions/...Action.php file found by ModuleActionDiscovery, before any attempt to load or reflect it.

final class ModuleActionEntry

Since1.0.0
SourceRouting/Compiler/ModuleActionEntry.php
PropertyTypeDescription
$actionstringreadonly.
$filestringreadonly.
$fqcnstringreadonly.
$modulestringreadonly.
$moduleDirstringreadonly.

public function __construct(string $module, string $action, string $file, string $fqcn, string $moduleDir): mixed

ParameterTypeDescription
$modulestring
$actionstring
$filestring
$fqcnstring
$moduleDirstring

Returns mixed

MethodDescription
legacyClassName(): stringThe pre-namespace legacy class name convention (Controller::createActionInstance()’s fallback), e.g.

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