8000 [3.0][FrameworkBundle][lint commands ] remove deprecated alias. by vincentaubert · Pull Request #14317 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
#14317 remove twig:lint alias
  • Loading branch information
vincentaubert committed Apr 11, 2015
commit 0957fa6171cf8f10df8a9608253449368e2cd203
5 changes: 0 additions & 5 deletions src/Symfony/Bridge/Twig/Command/LintCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ protected function getTwigEnvironment()
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)
Expand All @@ -84,10 +83,6 @@ protected function configure()

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) {
Expand Down
0