composer update
This commit is contained in:
9
vendor/symfony/routing/RouteCollection.php
vendored
9
vendor/symfony/routing/RouteCollection.php
vendored
@@ -69,8 +69,7 @@ class RouteCollection implements \IteratorAggregate, \Countable
|
||||
/**
|
||||
* Adds a route.
|
||||
*
|
||||
* @param string $name The route name
|
||||
* @param Route $route A Route instance
|
||||
* @param string $name The route name
|
||||
*/
|
||||
public function add($name, Route $route)
|
||||
{
|
||||
@@ -140,6 +139,10 @@ class RouteCollection implements \IteratorAggregate, \Countable
|
||||
*/
|
||||
public function addPrefix($prefix, array $defaults = [], array $requirements = [])
|
||||
{
|
||||
if (null === $prefix) {
|
||||
@trigger_error(sprintf('Passing null as $prefix to %s is deprecated in Symfony 4.4 and will trigger a TypeError in 5.0.', __METHOD__), E_USER_DEPRECATED);
|
||||
}
|
||||
|
||||
$prefix = trim(trim($prefix), '/');
|
||||
|
||||
if ('' === $prefix) {
|
||||
@@ -236,8 +239,6 @@ class RouteCollection implements \IteratorAggregate, \Countable
|
||||
* Adds options to all routes.
|
||||
*
|
||||
* An existing option value under the same name in a route will be overridden.
|
||||
*
|
||||
* @param array $options An array of options
|
||||
*/
|
||||
public function addOptions(array $options)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user