interface route_loader_interface

internal  
 

Contract for route loaders that scan and register controller routes.

Methods

void
load_annotations(RouteCollection $collection, ContainerInterface $container, string|null $class_name)

Scan a specific class for Route attributes and add them to the collection.

Details

at line 37
void load_annotations(RouteCollection $collection, ContainerInterface $container, string|null $class_name)

Scan a specific class for Route attributes and add them to the collection.

Parameters

RouteCollection $collection

The collection to populate

ContainerInterface $container

The container to register controllers

string|null $class_name

The FQCN to scan (null to scan all)

Return Value

void