Skip to content

Commit

Permalink
Merge pull request #24 from affektde/master
Browse files Browse the repository at this point in the history
Updates for 5.4
  • Loading branch information
guiassemany authored Jul 31, 2017
2 parents 0983a4f + 9ef7747 commit 39510a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Collectors/RoutesCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ public function __construct()
$name = isset($route->getAction()['as']) ? $route->getAction()['as'] : '';

$this->routes[] = [
'method'=> implode('|',$route->getMethods()),
'method'=> implode('|',$route->methods()),
'name' => $name,
'action'=> $action,
'uri' => $route->getUri(),
'uri' => $route->uri(),
'middleware' => isset($route->getAction()['middleware']) && is_array($route->getAction()['middleware']) ?
implode(',',$route->getAction()['middleware']) : (isset($route->getAction()['middleware']) ? $route->getAction()['middleware'] : '')
];
Expand Down

0 comments on commit 39510a8

Please sign in to comment.