We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8ab08ed + aba815c commit 7e8dba7Copy full SHA for 7e8dba7
src/Console/Command/Docs.php
@@ -149,8 +149,8 @@ protected function getControllers()
149
foreach ($this->router->getRoutes() as $collections) {
150
foreach ($collections as $route) {
151
if ($controller = $route->getController()) {
152
- if (! $controllers->contains($controller)) {
153
- $controllers->push($controller);
+ if (! $controllers->contains(get_class($controller))) {
+ $controllers->put(get_class($controller), $controller);
154
}
155
156
0 commit comments