updated packages

This commit is contained in:
2019-05-18 09:06:43 +00:00
parent 901d16349e
commit e9487fa58a
2025 changed files with 30366 additions and 49653 deletions
@@ -21,7 +21,7 @@ class RouteCollection implements Countable, IteratorAggregate
protected $routes = [];
/**
* An flattened array of all of the routes.
* A flattened array of all of the routes.
*
* @var array
*/
@@ -239,20 +239,28 @@ class RouteCollection implements Countable, IteratorAggregate
}))->bind($request);
}
$this->methodNotAllowed($methods);
$this->methodNotAllowed($methods, $request->method());
}
/**
* Throw a method not allowed HTTP exception.
*
* @param array $others
* @param string $method
* @return void
*
* @throws \Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException
*/
protected function methodNotAllowed(array $others)
protected function methodNotAllowed(array $others, $method)
{
throw new MethodNotAllowedHttpException($others);
throw new MethodNotAllowedHttpException(
$others,
sprintf(
'The %s method is not supported for this route. Supported methods: %s.',
$method,
implode(', ', $others)
)
);
}
/**