W3cubDocs

/Symfony 4.1

Route

class Route

Annotation class for @Route().

Methods

__construct(array $data)
setPath($path)
getPath()
setLocalizedPaths(array $localizedPaths)
array getLocalizedPaths()
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()

setLocalizedPaths(array $localizedPaths)

Parameters

array $localizedPaths

array getLocalizedPaths()

Return Value

array

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.
https://api.symfony.com/4.1/Symfony/Component/Routing/Annotation/Route.html