class RouteConfigurator
AddTrait | |
RouteTrait |
RouteConfigurator | add(string $name, $path) Adds a route. | from AddTrait |
RouteConfigurator | __invoke(string $name, $path) Adds a route. | from AddTrait |
$this | defaults(array $defaults) Adds defaults. | from RouteTrait |
$this | requirements(array $requirements) Adds requirements. | from RouteTrait |
$this | options(array $options) Adds options. | from RouteTrait |
$this | condition(string $condition) Sets the condition. | from RouteTrait |
$this | host(string $pattern) Sets the pattern for the host. | from RouteTrait |
$this | schemes(array $schemes) Sets the schemes (e.g. 'https') this route is restricted to. | from RouteTrait |
$this | methods(array $methods) Sets the HTTP methods (e.g. 'POST') this route is restricted to. | from RouteTrait |
$this | controller(callable|string $controller) Adds the "_controller" entry to defaults. | from RouteTrait |
__construct(RouteCollection $collection, $route, string $name = '', CollectionConfigurator $parentConfigurator = null, array $prefixes = null) |
Adds a route.
string | $name | |
$path |
RouteConfigurator |
Adds a route.
string | $name | |
$path |
RouteConfigurator |
Adds defaults.
array | $defaults |
$this |
Adds requirements.
array | $requirements |
$this |
Adds options.
array | $options |
$this |
Sets the condition.
string | $condition |
$this |
Sets the pattern for the host.
string | $pattern |
$this |
Sets the schemes (e.g. 'https') this route is restricted to.
So an empty array means that any scheme is allowed.
array | $schemes |
$this |
Sets the HTTP methods (e.g. 'POST') this route is restricted to.
So an empty array means that any method is allowed.
array | $methods |
$this |
Adds the "_controller" entry to defaults.
callable|string | $controller | a callable or parseable pseudo-callable |
$this |
RouteCollection | $collection | |
$route | ||
string | $name | |
CollectionConfigurator | $parentConfigurator | |
array | $prefixes |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Routing/Loader/Configurator/RouteConfigurator.html