You are here

public function Route::setPattern in Zircon Profile 8.0

Same name in this branch
  1. 8.0 vendor/symfony/routing/Route.php \Symfony\Component\Routing\Route::setPattern()
  2. 8.0 vendor/symfony/routing/Annotation/Route.php \Symfony\Component\Routing\Annotation\Route::setPattern()
Same name and namespace in other branches
  1. 8 vendor/symfony/routing/Annotation/Route.php \Symfony\Component\Routing\Annotation\Route::setPattern()

Deprecated

since version 2.2, to be removed in 3.0. Use setPath instead.

File

vendor/symfony/routing/Annotation/Route.php, line 60

Class

Route
Annotation class for @Route().

Namespace

Symfony\Component\Routing\Annotation

Code

public function setPattern($pattern) {
  @trigger_error('The ' . __METHOD__ . ' method is deprecated since version 2.2 and will be removed in 3.0. Use the setPath() method instead and use the "path" option instead of the "pattern" option in the route definition.', E_USER_DEPRECATED);
  $this->path = $pattern;
}