This commit is contained in:
Paolo A
2024-08-13 13:44:16 +00:00
parent 1bbb23088d
commit e796d76612
4001 changed files with 30101 additions and 40075 deletions

View File

@@ -146,6 +146,7 @@ abstract class AbstractRouteCollection implements Countable, IteratorAggregate,
'bindingFields' => $route->bindingFields(),
'lockSeconds' => $route->locksFor(),
'waitSeconds' => $route->waitsFor(),
'withTrashed' => $route->allowsTrashedBindings(),
];
}
@@ -194,13 +195,18 @@ abstract class AbstractRouteCollection implements Countable, IteratorAggregate,
* @param \Symfony\Component\Routing\RouteCollection $symfonyRoutes
* @param \Illuminate\Routing\Route $route
* @return \Symfony\Component\Routing\RouteCollection
*
* @throws \LogicException
*/
protected function addToSymfonyRoutesCollection(SymfonyRouteCollection $symfonyRoutes, Route $route)
{
$name = $route->getName();
if (Str::endsWith($name, '.') &&
! is_null($symfonyRoutes->get($name))) {
if (
! is_null($name)
&& Str::endsWith($name, '.')
&& ! is_null($symfonyRoutes->get($name))
) {
$name = null;
}
@@ -232,6 +238,7 @@ abstract class AbstractRouteCollection implements Countable, IteratorAggregate,
*
* @return \ArrayIterator
*/
#[\ReturnTypeWillChange]
public function getIterator()
{
return new ArrayIterator($this->getRoutes());
@@ -242,6 +249,7 @@ abstract class AbstractRouteCollection implements Countable, IteratorAggregate,
*
* @return int
*/
#[\ReturnTypeWillChange]
public function count()
{
return count($this->getRoutes());