Skip to content

Commit

Permalink
Correct code regression from recent rebase
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Setter <[email protected]>
  • Loading branch information
settermjd committed Dec 19, 2024
1 parent 0d875a3 commit 633d12f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Routes/ListRoutesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class ListRoutesCommand extends Command
public static $defaultName = 'mezzio:routes:list';

public function __construct(
private readonly ContainerInterface $container,
private readonly RouteCollector $routeCollector,
private readonly ConfigLoaderInterface $configLoader
) {
parent::__construct();
Expand Down Expand Up @@ -143,9 +143,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int

$this->configLoader->load();

/** @var RouteCollector $routeCollector */
$routeCollector = $this->container->get(RouteCollector::class);
$this->routes = $routeCollector->getRoutes();
$this->routes = $this->routeCollector->getRoutes();

if ([] === $this->routes) {
$output->writeln(self::MSG_EMPTY_ROUTING_TABLE);
Expand Down

0 comments on commit 633d12f

Please sign in to comment.