[3.0][FrameworkBundle][lint commands ] remove deprecated alias.
This commit is contained in:
parent
ff01ed4883
commit
94f55ced47
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Reference in New Issue
Block a user