Skip to content

Commit

Permalink
Merge pull request #1109 from tairau/fix-list-routes-fail
Browse files Browse the repository at this point in the history
Added HEAD and OPTIONS http method verbs to route list command
  • Loading branch information
butschster committed May 17, 2024
2 parents e6cdc90 + dc3c98f commit c78d0eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Framework/Command/Router/ListCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ private function getVerbs(RouteInterface $route): string
foreach ($route->getVerbs() as $verb) {
$result[] = match (\strtolower($verb)) {
'get' => '<fg=green>GET</>',
'head' => '<fg=bright-green>HEAD</>',
'options' => '<fg=magenta>OPTIONS</>',
'post' => '<fg=blue>POST</>',
'patch' => '<fg=cyan>PATCH</>',
'put' => '<fg=yellow>PUT</>',
Expand Down

0 comments on commit c78d0eb

Please sign in to comment.