111
This commit is contained in:
@@ -428,17 +428,12 @@ class Router extends HttpService implements RouterInterface
|
|||||||
public function each(): array
|
public function each(): array
|
||||||
{
|
{
|
||||||
$paths = [];
|
$paths = [];
|
||||||
foreach ($this->nodes as $node) {
|
foreach ($this->nodes as $_node) {
|
||||||
/** @var Node[] $node */
|
/** @var Node[] $node */
|
||||||
|
if (!empty($_node->sourcePath)) {
|
||||||
var_dump($node);
|
$path[] = ['method' => $_node->method, 'path' => $_node->sourcePath];
|
||||||
foreach ($node as $_node) {
|
}
|
||||||
if (!empty($_node->sourcePath)) {
|
$paths = $this->getChildes($_node, $paths);
|
||||||
$path[] = ['method' => $_node->method, 'path' => $_node->sourcePath];
|
|
||||||
}
|
|
||||||
var_dump($_node);
|
|
||||||
$paths = $this->getChildes($_node, $paths);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return $paths;
|
return $paths;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user