Skip to content

Commit 7e8dba7

Browse files
committed
Merge pull request dingo#591 from yuters/patch-1
Fix issue dingo#590 repetition in blueprint generation.
2 parents 8ab08ed + aba815c commit 7e8dba7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Console/Command/Docs.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ protected function getControllers()
149149
foreach ($this->router->getRoutes() as $collections) {
150150
foreach ($collections as $route) {
151151
if ($controller = $route->getController()) {
152-
if (! $controllers->contains($controller)) {
153-
$controllers->push($controller);
152+
if (! $controllers->contains(get_class($controller))) {
153+
$controllers->put(get_class($controller), $controller);
154154
}
155155
}
156156
}

0 commit comments

Comments
 (0)