Documentation

AddTrait

Tags
author

Nicolas Grekas p@tchwork.com

Table of Contents

$collection  : RouteCollection
$name  : mixed
$prefixes  : mixed
__invoke()  : RouteConfigurator
Adds a route.
add()  : RouteConfigurator
Adds a route.
alias()  : AliasConfigurator

Properties

Methods

__invoke()

Adds a route.

public __invoke(string $name, string|array<string|int, mixed> $path) : RouteConfigurator
Parameters
$name : string
$path : string|array<string|int, mixed>

the path, or the localized paths of the route

Return values
RouteConfigurator

add()

Adds a route.

public add(string $name, string|array<string|int, mixed> $path) : RouteConfigurator
Parameters
$name : string
$path : string|array<string|int, mixed>

the path, or the localized paths of the route

Return values
RouteConfigurator

Search results