mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-25 11:38:44 +02:00
N°5809 Update Symfony artifacts from 6.4.0 to 6.4.2
symfony/console symfony/dotenv symfony/framework-bundle symfony/http-foundation symfony/http-kernel symfony/var-dumper symfony/web-profiler-bundle
This commit is contained in:
@@ -147,9 +147,24 @@ class RouteCollection implements \IteratorAggregate, \Countable
|
||||
*/
|
||||
public function remove(string|array $name)
|
||||
{
|
||||
$routes = [];
|
||||
foreach ((array) $name as $n) {
|
||||
if (isset($this->routes[$n])) {
|
||||
$routes[] = $n;
|
||||
}
|
||||
|
||||
unset($this->routes[$n], $this->priorities[$n], $this->aliases[$n]);
|
||||
}
|
||||
|
||||
if (!$routes) {
|
||||
return;
|
||||
}
|
||||
|
||||
foreach ($this->aliases as $k => $alias) {
|
||||
if (\in_array($alias->getId(), $routes, true)) {
|
||||
unset($this->aliases[$k]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user