class ImportConfigurator

Traits

Methods

$this
defaults(array $defaults)

Adds defaults.

$this
requirements(array $requirements)

Adds requirements.

$this
options(array $options)

Adds options.

$this
condition(string $condition)

Sets the condition.

$this
host(string $pattern)

Sets the pattern for the host.

$this
schemes(array $schemes)

Sets the schemes (e.g. 'https') this route is restricted to.

$this
methods(array $methods)

Sets the HTTP methods (e.g. 'POST') this route is restricted to.

$this
controller(callable|string $controller)

Adds the "_controller" entry to defaults.

__construct(RouteCollection $parent, RouteCollection $route)

No description

__destruct()

No description

$this
prefix($prefix, bool $trailingSlashOnRoot = true)

Sets the prefix to add to the path of all child routes.

$this
namePrefix(string $namePrefix)

Sets the prefix to add to the name of all child routes.

Details

final $this defaults(array $defaults)

Adds defaults.

Parameters

array $defaults

Return Value

$this

final $this requirements(array $requirements)

Adds requirements.

Parameters

array $requirements

Return Value

$this

final $this options(array $options)

Adds options.

Parameters

array $options

Return Value

$this

final $this condition(string $condition)

Sets the condition.

Parameters

string $condition

Return Value

$this

final $this host(string $pattern)

Sets the pattern for the host.

Parameters

string $pattern

Return Value

$this

final $this schemes(array $schemes)

Sets the schemes (e.g. 'https') this route is restricted to.

So an empty array means that any scheme is allowed.

Parameters

array $schemes

Return Value

$this

final $this methods(array $methods)

Sets the HTTP methods (e.g. 'POST') this route is restricted to.

So an empty array means that any method is allowed.

Parameters

array $methods

Return Value

$this

final $this controller(callable|string $controller)

Adds the "_controller" entry to defaults.

Parameters

callable|string $controller a callable or parseable pseudo-callable

Return Value

$this

__construct(RouteCollection $parent, RouteCollection $route)

Parameters

RouteCollection $parent
RouteCollection $route

__destruct()

final $this prefix($prefix, bool $trailingSlashOnRoot = true)

Sets the prefix to add to the path of all child routes.

Parameters

$prefix
bool $trailingSlashOnRoot

Return Value

$this

final $this namePrefix(string $namePrefix)

Sets the prefix to add to the name of all child routes.

Parameters

string $namePrefix

Return Value

$this