Symfony\Component\Routing\Route::__construct
Constructor.
Available options: * compiler_class: A class name able to compile this route instance (RouteCompiler by default)
Signature
public function __construct(string
$path,
[array
$defaults = '',
[array
$requirements = '',
[array
$options = '',
[string
$host = '',
array
$schemes,
array
$methods]]]] )
Parameters
$path
— string- The path pattern to match
$defaults
— array- An array of default parameter values
$requirements
— array- An array of requirements for parameters (regexes)
$options
— array- An array of options
$host
— string- The host pattern to match
$schemes
— array- A required URI scheme or an array of restricted schemes
$methods
— array- A required HTTP method or an array of restricted methods