From 94f55ced4764659f94759057d13a0f6c75f6842e Mon Sep 17 00:00:00 2001 From: Vincent AUBERT Date: Sat, 11 Apr 2015 12:49:20 +0200 Subject: [PATCH] [3.0][FrameworkBundle][lint commands ] remove deprecated alias. --- src/Symfony/Bridge/Twig/Command/LintCommand.php | 5 ----- .../Bundle/FrameworkBundle/Command/YamlLintCommand.php | 5 ----- 2 files changed, 10 deletions(-) diff --git a/src/Symfony/Bridge/Twig/Command/LintCommand.php b/src/Symfony/Bridge/Twig/Command/LintCommand.php index 59543a4744..f39fe59916 100644 --- a/src/Symfony/Bridge/Twig/Command/LintCommand.php +++ b/src/Symfony/Bridge/Twig/Command/LintCommand.php @@ -57,7 +57,6 @@ class LintCommand extends Command protected function configure() { $this - ->setAliases(array('twig:lint')) ->setDescription('Lints a template and outputs encountered errors') ->addOption('format', null, InputOption::VALUE_REQUIRED, 'The output format', 'txt') ->addArgument('filename', InputArgument::IS_ARRAY) @@ -84,10 +83,6 @@ EOF protected function execute(InputInterface $input, OutputInterface $output) { - if (false !== strpos($input->getFirstArgument(), ':l')) { - $output->writeln('The use of "twig:lint" command is deprecated since version 2.7 and will be removed in 3.0. Use the "lint:twig" instead.'); - } - $twig = $this->getTwigEnvironment(); if (null === $twig) { diff --git a/src/Symfony/Bundle/FrameworkBundle/Command/YamlLintCommand.php b/src/Symfony/Bundle/FrameworkBundle/Command/YamlLintCommand.php index f8d7c279d6..2a88c2fbeb 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Command/YamlLintCommand.php +++ b/src/Symfony/Bundle/FrameworkBundle/Command/YamlLintCommand.php @@ -30,7 +30,6 @@ class YamlLintCommand extends Command { $this ->setName('lint:yaml') - ->setAliases(array('yaml:lint')) ->setDescription('Lints a file and outputs encountered errors') ->addArgument('filename', null, 'A file or a directory or STDIN') ->addOption('format', null, InputOption::VALUE_REQUIRED, 'The output format', 'txt') @@ -62,10 +61,6 @@ EOF protected function execute(InputInterface $input, OutputInterface $output) { - if (false !== strpos($input->getFirstArgument(), ':l')) { - $output->writeln('The use of "yaml:lint" command is deprecated since version 2.7 and will be removed in 3.0. Use the "lint:yaml" instead.'); - } - $filename = $input->getArgument('filename'); if (!$filename) {