Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 73853c4

Browse filesBrowse files
committed
feature #14317 [3.0][FrameworkBundle][lint commands ] remove deprecated alias. (vincentaubert)
This PR was squashed before being merged into the 3.0-dev branch (closes #14317). Discussion ---------- [3.0][FrameworkBundle][lint commands ] remove deprecated alias. | Q | A | ------------- | --- | Bug fix? | no | New feature? |no | BC breaks? | yes | Deprecations? | yes | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Commits ------- 94f55ce [3.0][FrameworkBundle][lint commands ] remove deprecated alias.
2 parents ff01ed4 + 94f55ce commit 73853c4
Copy full SHA for 73853c4

File tree

Expand file treeCollapse file tree

2 files changed

+0
-10
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+0
-10
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Twig/Command/LintCommand.php
-5Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Command/YamlLintCommand.php
-5Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.