---
title: "symfony/security-bundle v8.0.0 Breaking Changes on Packagist"
description: "What each symfony/security-bundle release removed, renamed or changed: 67 breaking changes in 4 versions on Packagist, each with its source."
canonical_url: https://since.dev/packages/packagist/symfony/security-bundle
last_updated: 2026-12-04
---

# symfony/security-bundle breaking changes

symfony/security-bundle v8.0.0 (November 27, 2025) is its newest release with breaking changes, 4 of them. The first: Removed Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\SecurityExtension::getNamespace. Every breaking API change we have recorded in symfony/security-bundle on Packagist: 67 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `v8.2.0`, released November 28, 2026. MIT license. [Source repository](https://github.com/symfony/security-bundle)

Its v8.0.0-BETA1 release requires [PHP 8.4](https://since.dev/calendar/php/8.4.md) or later. [PHP end of life dates](https://since.dev/calendar/php.md).

- From [v7.0.0](#v-v7-0-0) to [v8.0.0](#v-v8-0-0): 22 breaking changes in 2 versions.

## symfony/security-bundle v8.0.0 breaking changes

symfony/security-bundle v8.0.0, released November 27, 2025: 4 breaking changes.

- **Removed** `Symfony\Bundle\SecurityBundle\DependencyInjection\SecurityExtension::getNamespace`  

Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\SecurityExtension::getNamespace was removed in symfony/security-bundle v8.0.0 [packagist.org](https://packagist.org/packages/symfony/security-bundle#v8.0.0)
- **Removed** `Symfony\Bundle\SecurityBundle\DependencyInjection\SecurityExtension::getXsdValidationBasePath`  

Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\SecurityExtension::getXsdValidationBasePath was removed in symfony/security-bundle v8.0.0 [packagist.org](https://packagist.org/packages/symfony/security-bundle#v8.0.0)
- **Removed** `Symfony\Bundle\SecurityBundle\Security\LazyFirewallContext::__invoke`  

Symfony\\Bundle\\SecurityBundle\\Security\\LazyFirewallContext::\_\_invoke was removed in symfony/security-bundle v8.0.0 [packagist.org](https://packagist.org/packages/symfony/security-bundle#v8.0.0)
- **Signature changed** `Symfony\Bundle\SecurityBundle\CacheWarmer\ExpressionCacheWarmer`  

Was class ExpressionCacheWarmer implements CacheWarmerInterface; now final class ExpressionCacheWarmer implements CacheWarmerInterface. [packagist.org](https://packagist.org/packages/symfony/security-bundle#v8.0.0)

## symfony/security-bundle v8.0.0-BETA1 breaking changes

symfony/security-bundle v8.0.0-BETA1, released November 27, 2025: 18 breaking changes.

- **Removed**  

XML configuration files are no longer supported, so they must be converted to another configuration format. [github.com](https://github.com/symfony/security-bundle/releases/tag/v8.0.0-BETA1)
- **Removed**  

Callable firewall listeners are no longer supported. Use firewall listener classes instead. [github.com](https://github.com/symfony/security-bundle/releases/tag/v8.0.0-BETA1)
- **Removed** `algorithm`  

The deprecated algorithm option of the OIDC token handler is removed. Remove it from your configuration. [github.com](https://github.com/symfony/security-bundle/releases/tag/v8.0.0-BETA1)
- **Removed** `base_template_class`  

The option is removed and configuration using it must be cleaned up. [github.com](https://github.com/symfony/security-bundle/releases/tag/v8.0.0-BETA1)
- **Removed** `callable firewall listeners`  

Callable firewall listeners no longer work and must be replaced by listener classes. [github.com](https://github.com/symfony/security-bundle/releases/tag/v8.0.0-BETA1)
- **Removed** `ExtensionInterface.getNamespace`  

Extensions no longer need to implement getNamespace() from the interface. [github.com](https://github.com/symfony/security-bundle/releases/tag/v8.0.0-BETA1)
- **Removed** `ExtensionInterface.getXsdValidationBasePath`  

Extensions no longer need to implement getXsdValidationBasePath() from the interface. [github.com](https://github.com/symfony/security-bundle/releases/tag/v8.0.0-BETA1)
- **Removed** `hide_user_not_found`  

The deprecated hide_user_not_found option is removed. Remove it from your security configuration. [github.com](https://github.com/symfony/security-bundle/releases/tag/v8.0.0-BETA1)
- **Removed** `key`  

The deprecated key option of the OIDC token handler is removed. Remove it from your configuration. [github.com](https://github.com/symfony/security-bundle/releases/tag/v8.0.0-BETA1)
- **Removed** `RateLimiterFactory`  

Autowiring aliases for RateLimiterFactory are removed. Inject the factory by explicit service id or name. [github.com](https://github.com/symfony/security-bundle/releases/tag/v8.0.0-BETA1)

And 8 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## symfony/security-bundle v7.0.0 breaking changes

symfony/security-bundle v7.0.0, released November 29, 2023: 34 breaking changes.

- **Removed** `Symfony\Bundle\SecurityBundle\Security::ACCESS_DENIED_ERROR`  

Use SecurityRequestAttributes::ACCESS_DENIED_ERROR instead. [packagist.org](https://packagist.org/packages/symfony/security-bundle#v7.0.0)
- **Removed** `Symfony\Bundle\SecurityBundle\Security::AUTHENTICATION_ERROR`  

Use SecurityRequestAttributes::AUTHENTICATION_ERROR instead. [packagist.org](https://packagist.org/packages/symfony/security-bundle#v7.0.0)
- **Removed** `Symfony\Bundle\SecurityBundle\Security::LAST_USERNAME`  

Use SecurityRequestAttributes::LAST_USERNAME instead. [packagist.org](https://packagist.org/packages/symfony/security-bundle#v7.0.0)
- **Signature changed** `Symfony\Bundle\SecurityBundle\CacheWarmer\ExpressionCacheWarmer::warmUp`  

Was public function warmUp(string $cacheDir /\*, string $buildDir = null \*/): array; now public function warmUp(string $cacheDir, string $buildDir = null): array. [packagist.org](https://packagist.org/packages/symfony/security-bundle#v7.0.0)
- **Signature changed** `Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener::getWrappedListeners`  

Was public function getWrappedListeners(); now public function getWrappedListeners(): array. [packagist.org](https://packagist.org/packages/symfony/security-bundle#v7.0.0)
- **Signature changed** `Symfony\Bundle\SecurityBundle\DependencyInjection\Compiler\AddExpressionLanguageProvidersPass::process`  

Was public function process(ContainerBuilder $container); now public function process(ContainerBuilder $container): void. [packagist.org](https://packagist.org/packages/symfony/security-bundle#v7.0.0)
- **Signature changed** `Symfony\Bundle\SecurityBundle\DependencyInjection\Compiler\AddSecurityVotersPass::process`  

Was public function process(ContainerBuilder $container); now public function process(ContainerBuilder $container): void. [packagist.org](https://packagist.org/packages/symfony/security-bundle#v7.0.0)
- **Signature changed** `Symfony\Bundle\SecurityBundle\DependencyInjection\Compiler\AddSessionDomainConstraintPass::process`  

Was public function process(ContainerBuilder $container); now public function process(ContainerBuilder $container): void. [packagist.org](https://packagist.org/packages/symfony/security-bundle#v7.0.0)
- **Signature changed** `Symfony\Bundle\SecurityBundle\DependencyInjection\Compiler\CleanRememberMeVerifierPass::process`  

Was public function process(ContainerBuilder $container); now public function process(ContainerBuilder $container): void. [packagist.org](https://packagist.org/packages/symfony/security-bundle#v7.0.0)
- **Signature changed** `Symfony\Bundle\SecurityBundle\DependencyInjection\Compiler\MakeFirewallsEventDispatcherTraceablePass::process`  

Was public function process(ContainerBuilder $container); now public function process(ContainerBuilder $container): void. [packagist.org](https://packagist.org/packages/symfony/security-bundle#v7.0.0)

And 24 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## symfony/security-bundle v7.0.0-BETA1 breaking changes

symfony/security-bundle v7.0.0-BETA1, released November 29, 2023: 11 breaking changes.

- **Removed**  

Twig 2 is no longer supported; upgrade to Twig 3. [github.com](https://github.com/symfony/security-bundle/releases/tag/v7.0.0-BETA1)
- **Removed**  

The package now requires PHP 8.2 or later. [github.com](https://github.com/symfony/security-bundle/releases/tag/v7.0.0-BETA1)
- **Removed** `ContainerAwareInterface`  

ContainerAwareInterface, ContainerAwareTrait and ContainerAwareLoader are deprecated. [github.com](https://github.com/symfony/security-bundle/releases/tag/v7.0.0-BETA1)
- **Removed** `deprecated code paths`  

Previously deprecated code paths were removed from the Security component. [github.com](https://github.com/symfony/security-bundle/releases/tag/v7.0.0-BETA1)
- **Removed** `remaining experimental classes`  

Experimental classes were removed and code relying on them will break. [github.com](https://github.com/symfony/security-bundle/releases/tag/v7.0.0-BETA1)
- **Behavior changed** `SecurityBundle`  

SecurityBundle must be configured once enabled; an unconfigured bundle now fails. [github.com](https://github.com/symfony/security-bundle/releases/tag/v7.0.0-BETA1)
- **Signature changed** `Doctrine\Bridge\DoctrineTokenProvider.updateToken`  

The $lastUsed argument of DoctrineTokenProvider::updateToken() now accepts DateTimeInterface; update callers that pass other types. [github.com](https://github.com/symfony/security-bundle/releases/tag/v7.0.0-BETA1)
- **Signature changed** `DoctrineTokenProvider.updateToken`  

The $lastUsed argument of DoctrineTokenProvider::updateToken() now accepts DateTimeInterface. Code passing other types must be updated. [github.com](https://github.com/symfony/security-bundle/releases/tag/v7.0.0-BETA1)
- **Signature changed** `Security.login`  

Security::login now accepts a $badges argument, so overriding or calling it may need updating. [github.com](https://github.com/symfony/security-bundle/releases/tag/v7.0.0-BETA1)
- **Signature changed** `Symfony\Component\Security\Http\Authenticator\Passport\Security.login`  

Security::login now takes a $badges argument; existing callers may need review. [github.com](https://github.com/symfony/security-bundle/releases/tag/v7.0.0-BETA1)

And 1 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Related packages

- [symfony/asset](https://since.dev/packages/packagist/symfony/asset.md)
- [symfony/browser-kit](https://since.dev/packages/packagist/symfony/browser-kit.md)
- [symfony/cache](https://since.dev/packages/packagist/symfony/cache.md)
- [symfony/config](https://since.dev/packages/packagist/symfony/config.md)
- [symfony/console](https://since.dev/packages/packagist/symfony/console.md)
- [symfony/css-selector](https://since.dev/packages/packagist/symfony/css-selector.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
