W3cubDocs

/Symfony 4.1

AddTrait

trait AddTrait

Methods

RouteConfigurator add(string $name, $path)

Adds a route.

RouteConfigurator __invoke(string $name, $path)

Adds a route.

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

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Routing/Loader/Configurator/Traits/AddTrait.html