W3cubDocs

/Symfony 4.1

RoutingConfigurator

class RoutingConfigurator

Traits

AddTrait

Methods

RouteConfigurator add(string $name, $path)

Adds a route.

from AddTrait
RouteConfigurator __invoke(string $name, $path)

Adds a route.

from AddTrait
__construct(RouteCollection $collection, PhpFileLoader $loader, string $path, string $file)
ImportConfigurator import($resource, $type = null, $ignoreErrors = false)
CollectionConfigurator collection($name = '')

Details

final RouteConfigurator add(string $name, $path)

Adds a route.

Parameters

string $name
$path

Return Value

RouteConfigurator

final RouteConfigurator __invoke(string $name, $path)

Adds a route.

Parameters

string $name
$path

Return Value

RouteConfigurator

__construct(RouteCollection $collection, PhpFileLoader $loader, string $path, string $file)

Parameters

RouteCollection $collection
PhpFileLoader $loader
string $path
string $file

final ImportConfigurator import($resource, $type = null, $ignoreErrors = false)

Parameters

$resource
$type
$ignoreErrors

Return Value

ImportConfigurator

final CollectionConfigurator collection($name = '')

Parameters

$name

Return Value

CollectionConfigurator