RoutingConfigurator
in package
Uses
AddTrait
Tags
Table of Contents
Properties
- $collection : RouteCollection
- $name : mixed
- $prefixes : mixed
- $env : string|null
- $file : string
- $loader : mixed
- $path : string
Methods
- __construct() : mixed
- __invoke() : RouteConfigurator
- Adds a route.
- add() : RouteConfigurator
- Adds a route.
- alias() : AliasConfigurator
- collection() : CollectionConfigurator
- env() : string|null
- Get the current environment to be able to write conditional configuration.
- import() : ImportConfigurator
- withPath() : static
Properties
$collection
protected
RouteCollection
$collection
$name
protected
mixed
$name
= ''
$prefixes
protected
mixed
$prefixes
$env
private
string|null
$env
$file
private
string
$file
$loader
private
mixed
$loader
$path
private
string
$path
Methods
__construct()
public
__construct(RouteCollection $collection, PhpFileLoader $loader, string $path, string $file[, string $env = null ]) : mixed
Parameters
- $collection : RouteCollection
- $loader : PhpFileLoader
- $path : string
- $file : string
- $env : string = null
__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
RouteConfiguratoradd()
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
RouteConfiguratoralias()
public
alias(string $name, string $alias) : AliasConfigurator
Parameters
- $name : string
- $alias : string
Return values
AliasConfiguratorcollection()
public
final collection([string $name = '' ]) : CollectionConfigurator
Parameters
- $name : string = ''
Return values
CollectionConfiguratorenv()
Get the current environment to be able to write conditional configuration.
public
final env() : string|null
Return values
string|nullimport()
public
final import(string|array<string|int, mixed> $resource[, string $type = null ][, bool $ignoreErrors = false ][, string|array<string|int, string>|null $exclude = null ]) : ImportConfigurator
Parameters
- $resource : string|array<string|int, mixed>
- $type : string = null
- $ignoreErrors : bool = false
- $exclude : string|array<string|int, string>|null = null
-
Glob patterns to exclude from the import
Return values
ImportConfiguratorwithPath()
public
final withPath(string $path) : static
Parameters
- $path : string