AddTrait
Table of Contents
- $collection : RouteCollection
- $name : mixed
- $prefixes : mixed
- __invoke() : RouteConfigurator
- Adds a route.
- add() : RouteConfigurator
- Adds a route.
- createRoute() : Route
Properties
$collection
private
RouteCollection
$collection
$name
private
mixed
$name
= ''
$prefixes
private
mixed
$prefixes
Methods
__invoke()
Adds a route.
public
final __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
final 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 —createRoute()
private
createRoute(string $path) : Route
Parameters
- $path : string