class route_loader implements route_loader_interface

internal  
 

Route Loader.

Responsible for inspecting classes via Reflection and extracting PHP 8 #[Route] attributes to build the RouteCollection.

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 49
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