[3.0][FrameworkBundle][lint commands ] remove deprecated alias.

This commit is contained in:
Vincent AUBERT 2015-04-11 12:49:20 +02:00 committed by Fabien Potencier
parent ff01ed4883
commit 94f55ced47
2 changed files with 0 additions and 10 deletions

View File

@ -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('<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>');
}
$twig = $this->getTwigEnvironment();
if (null === $twig) {

View File

@ -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('<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>');
}
$filename = $input->getArgument('filename');
if (!$filename) {