class RoutingComponent implements ComponentInterface (View source)

A routing HTTP component

Properties

protected RouterInterface $router
protected PackageManager $packageManager
protected array $options

Methods

__construct(array $options = [])

No description

void
handle(ComponentContext $componentContext)

Resolve a route for the request

Details

__construct(array $options = [])

No description

Parameters

array $options

void handle(ComponentContext $componentContext)

Resolve a route for the request

Stores the resolved route values in the ComponentContext to pass them to other components. They can be accessed via ComponentContext::getParameter(outingComponent::class, 'matchResults');

Parameters

ComponentContext $componentContext

Return Value

void