Commaaa2
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user