Skip to content

Support Classes ​

The src/Support/ directory contains internal utility classes that power scaffolding, routing, asset compilation, coverage analysis, and file manipulation. They are not meant to be extended directly by module authors but understanding them helps when debugging or contributing to Modularous internals.

Class Reference ​

ClassNamespacePurpose
CommandDiscoverySupportScans glob paths and returns instantiable Command FQCNs
CoverageAnalyzerSupportParses Clover XML and reports per-method coverage
FileLoaderSupportExtends Laravel's translation FileLoader with multi-path support
FinderSupportResolves model and repository classes by table or route name
HostRouting / HostRouteRegistrarSupportFluent API for registering multi-tenant host-based route groups
ModularousRoutesSupportDefines route group options and registers all middleware aliases
ModularousViteSupportExtends Laravel Vite for Modularous asset manifest
RegexReplacementSupportBatch regex find-and-replace across a directory tree
DecomposersSupport\DecomposersParse schema/relation/validation strings into arrays for generators
Migrations\SchemaParserSupport\MigrationsRenders migration $table->… PHP from a schema definition string

Sub-namespaces ​

src/Support/
├── CommandDiscovery.php
├── CoverageAnalyzer.php
├── FileLoader.php
├── Finder.php
├── HostRouteRegistrar.php
├── HostRouting.php
├── ModularousRoutes.php
├── ModularousVite.php
├── RegexReplacement.php
├── Decomposers/
│   ├── ModelRelationParser.php
│   ├── SchemaParser.php
│   └── ValidatorParser.php
└── Migrations/
    └── SchemaParser.php