ControllerMap
Corex\Http\ControllerMap · class · Core layer
Discovers controllers by convention: every instantiable class in a module’s Controllers/ directory (mapped to its FQCN via the module’s PSR-4 prefix) is registered with the container — no annotations, no central list (spec FR-018). Abstracts, interfaces, traits, and non-class files are skipped (FR-019).
Public API
Section titled “Public API”__construct(ContainerInterface $container)
Section titled “__construct(ContainerInterface $container)”discover(array $namespaceToDir): void
Section titled “discover(array $namespaceToDir): void”Scan each module’s controllers directory and register the controllers found. Read the result with controllers().
controllers(): array
Section titled “controllers(): array”All controllers discovered so far, across every module scanned.