You are here

public function Route::setMethods in Zircon Profile 8.0

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

File

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

Class

Route
Annotation class for @Route().

Namespace

Symfony\Component\Routing\Annotation

Code

public function setMethods($methods) {
  $this->methods = is_array($methods) ? $methods : array(
    $methods,
  );
}