RoutingConfigurator
in package
Uses
AddTrait
Tags
Table of Contents
- $collection : RouteCollection
- $file : mixed
- $loader : mixed
- $name : mixed
- $path : mixed
- $prefixes : mixed
- __construct() : mixed
- __invoke() : RouteConfigurator
- Adds a route.
- add() : RouteConfigurator
- Adds a route.
- collection() : CollectionConfigurator
- import() : ImportConfigurator
- createRoute() : Route
Properties
$collection
private
RouteCollection
$collection
$file
private
mixed
$file
$loader
private
mixed
$loader
$name
private
mixed
$name
= ''
$path
private
mixed
$path
$prefixes
private
mixed
$prefixes
Methods
__construct()
public
__construct(RouteCollection $collection, PhpFileLoader $loader, string $path, string $file) : mixed
Parameters
- $collection : RouteCollection
- $loader : PhpFileLoader
- $path : string
- $file : string
Return values
mixed —__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 —collection()
public
final collection([string $name = '' ]) : CollectionConfigurator
Parameters
- $name : string = ''
Return values
CollectionConfigurator —import()
public
final import(mixed $resource[, string $type = null ][, bool $ignoreErrors = false ][, string|array<string|int, string>|null $exclude = null ]) : ImportConfigurator
Parameters
- $resource : mixed
- $type : string = null
- $ignoreErrors : bool = false
- $exclude : string|array<string|int, string>|null = null
-
Glob patterns to exclude from the import
Return values
ImportConfigurator —createRoute()
private
createRoute(string $path) : Route
Parameters
- $path : string