Skip to content

Commit

Permalink
RouteDumpCommand: remove sorting, endpoints are sorted in core
Browse files Browse the repository at this point in the history
  • Loading branch information
mabar committed Oct 21, 2019
1 parent 12fbcda commit 5ec2e6c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Command/RouteDumpCommand.php
Expand Up @@ -61,10 +61,6 @@ protected function execute(InputInterface $input, OutputInterface $output): ?int

foreach ($endpointsByHandler as $handler) {

usort($handler, function (Endpoint $first, Endpoint $second) {
return strlen((string) $first->getMask()) - strlen((string) $second->getMask());
});

foreach ($handler as $endpoint) {
$table->addRow([
implode('|', $endpoint->getMethods()),
Expand Down

0 comments on commit 5ec2e6c

Please sign in to comment.