8000 minor #27497 [FrameworkBundle][SecurityBundle] Remove no-longer neces… · symfony/symfony@cc0320f · GitHub
[go: up one dir, main page]

Skip to content

Commit cc0320f

Browse files
minor #27497 [FrameworkBundle][SecurityBundle] Remove no-longer necessary Bundle::registerCommands override (ogizanagi)
This PR was merged into the 4.1 branch. Discussion ---------- [FrameworkBundle][SecurityBundle] Remove no-longer necessary Bundle::registerCommands override | Q | A | ------------- | --- | Branch? | 4.1 <!-- see below --> | Bug fix? | no | New feature? | no <!-- don't forget to update src/**/CHANGELOG.md files --> | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | N/A <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | N/A These two bundles requires `symfony/http-kernel:^4.1` which already makes [`Bundle::registerCommands`](https://github.com/symfony/symfony/blob/49ad34b78ec83ac7b65506a73e6003aba5860333/src/Symfony/Component/HttpKernel/Bundle/Bundle.php#L143-L145) a noop. Commits ------- 7c97846 [FrameworkBundle][SecurityBundle] Remove no-longer necessary Bundle::registerCommands override
2 parents 49ad34b + 7c97846 commit cc0320f

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

src/Symfony/Bundle/FrameworkBundle/FrameworkBundle.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\TestServiceContainerRealRefPass;
2828
use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\UnusedTagsPass;
2929
use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\WorkflowGuardListenerPass;
30-
use Symfony\Component\Console\Application;
3130
use Symfony\Component\Console\DependencyInjection\AddConsoleCommandPass;
3231
use Symfony\Component\HttpKernel\DependencyInjection\ControllerArgumentValueResolverPass;
3332
use Symfony\Component\HttpKernel\DependencyInjection\LoggerPass;
@@ -137,9 +136,4 @@ private function addCompilerPassIfExists(ContainerBuilder $container, $class, $t
137136
$container->addCompilerPass(new $class(), $type, $priority);
138137
}
139138
}
140-
141-
public function registerCommands(Application $application)
142-
{
143-
// noop
144-
}
145139
}

src/Symfony/Bundle/SecurityBundle/SecurityBundle.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
use Symfony\Bundle\SecurityBundle\DependencyInjection\Compiler\RegisterCsrfTokenClearingLogoutHandlerPass;
1515
use Symfony\Bundle\SecurityBundle\DependencyInjection\Security\Factory\JsonLoginFactory;
16-
use Symfony\Component\Console\Application;
1716
use Symfony\Component\HttpKernel\Bundle\Bundle;
1817
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
1918
use Symfony\Component\DependencyInjection\ContainerBuilder;
@@ -62,9 +61,4 @@ public function build(ContainerBuilder $container)
6261
$container->addCompilerPass(new AddSessionDomainConstraintPass(), PassConfig::TYPE_BEFORE_REMOVING);
6362
$container->addCompilerPass(new RegisterCsrfTokenClearingLogoutHandlerPass());
6463
}
65-
66-
public function registerCommands(Application $application)
67-
{
68-
// noop
69-
}
7064
}

0 commit comments

Comments
 (0)
0