Skip to content

Commit

Permalink
Merge pull request #1 from studiofrenetic/patch-1
Browse files Browse the repository at this point in the history
Fix issue dingo#590 repetition in blueprint generation.r
  • Loading branch information
yuters committed Aug 19, 2015
2 parents 8ab08ed + aba815c commit 01325db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Console/Command/Docs.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ protected function getControllers()
foreach ($this->router->getRoutes() as $collections) {
foreach ($collections as $route) {
if ($controller = $route->getController()) {
if (! $controllers->contains($controller)) {
$controllers->push($controller);
if (! $controllers->contains(get_class($controller))) {
$controllers->put(get_class($controller), $controller);
}
}
}
Expand Down

0 comments on commit 01325db

Please sign in to comment.