RouteCollector
in package
Discover and register routes from enabled AHG plugins.
Uses PDO to query atom_plugin (same pattern as ProjectConfiguration) to avoid Symfony autoloader conflicts. For each enabled plugin, checks for routing.yml and loads routes into the Laravel Router.
Table of Contents
Methods
- __construct() : mixed
- collectAll() : void
- Discover and register routes from all enabled plugins.
- collectFromPlugin() : void
- Collect routes from a single plugin.
Methods
__construct()
public
__construct(Router $router, string $pluginsDir, PDO $pdo) : mixed
Parameters
- $router : Router
- $pluginsDir : string
- $pdo : PDO
collectAll()
Discover and register routes from all enabled plugins.
public
collectAll() : void
collectFromPlugin()
Collect routes from a single plugin.
public
collectFromPlugin(string $pluginName) : void
Parameters
- $pluginName : string