Skip to content

ModuleActionDiscovery

Filesystem discovery of every {Module}/Actions/**\/*Action.php file under one or more module directories, independent of whether the action carries a #[Route] attribute.

AttributeRouteScanner only surfaces actions that declare a route; introspection consumers (the cache/introspection/app.json artifact, triad diagnostics) need the full action inventory per module, so this is a sibling front-end over the same Actions/ convention rather than a route-scoped one.

final class ModuleActionDiscovery

Since1.0.0
SourceRouting/Compiler/ModuleActionDiscovery.php
MethodDescription
discover(iterable<string> $moduleDirs, string $namespacePrefix): list<ModuleActionEntry>

public function discover(iterable<string> $moduleDirs, string $namespacePrefix): list<ModuleActionEntry>

ParameterTypeDescription
$moduleDirsiterable``<``string``>
$namespacePrefixstring

Returns list``<ModuleActionEntry>