Skip to content

Commit f76a265

Browse files
committed
Adding deprecation notice for --show-controllers
1 parent 44577d0 commit f76a265

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Symfony/Bundle/FrameworkBundle/Command/RouterDebugCommand.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ protected function execute(InputInterface $input, OutputInterface $output): int
8282
if ($this->fileLinkFormatter) {
8383
$container = fn () => $this->getContainerBuilder($this->getApplication()->getKernel());
8484
}
85+
if ($input->getOption('show-controllers')){
86+
trigger_deprecation('symfony/console', '7.3', 'Using --show-controllers is deprecated. They are shown by default now.');
87+
}
8588

8689
if ($name) {
8790
$route = $routes->get($name);

0 commit comments

Comments
 (0)