Route

class Route

Annotation class for @Route().

Methods

__construct(array $data)
setPath($path)
getPath()
setHost($pattern)
getHost()
setName($name)
getName()
setRequirements($requirements)
getRequirements()
setOptions($options)
getOptions()
setDefaults($defaults)
getDefaults()
setSchemes($schemes)
getSchemes()
setMethods($methods)
getMethods()
setCondition($condition)
getCondition()

Details

__construct(array $data)

Parameters

array $data An array of key/value parameters

Exceptions

BadMethodCallException

setPath($path)

Parameters

$path

getPath()

setHost($pattern)

Parameters

$pattern

getHost()

setName($name)

Parameters

$name

getName()

setRequirements($requirements)

Parameters

$requirements

getRequirements()

setOptions($options)

Parameters

$options

getOptions()

setDefaults($defaults)

Parameters

$defaults

getDefaults()

setSchemes($schemes)

Parameters

$schemes

getSchemes()

setMethods($methods)

Parameters

$methods

getMethods()

setCondition($condition)

Parameters

$condition

getCondition()

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/Routing/Annotation/Route.html