10000 [3.0][FrameworkBundle][lint commands ] remove deprecated alias. · symfony/symfony@94f55ce · GitHub
[go: up one dir, main page]

Skip to content

Commit 94f55ce

Browse files
vincentaubertfabpot
authored andcommitted
[3.0][FrameworkBundle][lint commands ] remove deprecated alias.
1 parent ff01ed4 commit 94f55ce

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

src/Symfony/Bridge/Twig/Command/LintCommand.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ protected function getTwigEnvironment()
5757
protected function configure()
5858
{
5959
$this
60-
->setAliases(array('twig:lint'))
6160
->setDescription('Lints a template and outputs encountered errors')
6261
->addOption('format', null, InputOption::VALUE_REQUIRED, 'The output format', 'txt')
6362
->addArgument('filename', InputArgument::IS_ARRAY)
@@ -84,10 +83,6 @@ protected function configure()
8483

8584
protected function execute(InputInterface $input, OutputInterface $output)
8685
{
87-
if (false !== strpos($input->getFirstArgument(), ':l')) {
88-
$output->writeln('<comment>The use of "twig:lint" command is deprecated since version 2.7 and will be removed in 3.0. Use the "lint:twig" instead.</comment>');
89-
}
90-
9186
$twig = $this->getTwigEnvironment();
9287

9388
if (null === $twig) {

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ protected function configure()
3030
{
3131
$this
3232
->setName('lint:yaml')
33-
->setAliases(array('yaml:lint'))
3433
->setDescription('Lints a file and outputs encountered errors')
3534
->addArgument('filename', null, 'A file or a directory or STDIN')
3635
->addOption('format', null, InputOption::VALUE_REQUIRED, 'The output format', 'txt')
@@ -62,10 +61,6 @@ protected function configure()
6261

6362
protected function execute(InputInterface $input, OutputInterface $output)
6463
{
65-
if (false !== strpos($input->getFirstArgument(), ':l')) {
66-
$output->writeln('<comment>The use of "yaml:lint" command is deprecated since version 2.7 and will be removed in 3.0. Use the "lint:yaml" instead.</comment>');
67-
}
68-
6964
$filename = $input->getArgument('filename');
7065

7166
if (!$filename) {

0 commit comments

Comments
 (0)
0