symfony/security-bundle breaking changes
Updated December 4, 2026
On this page
Latest version v8.2.0, released November 28, 2026. MIT license. Source repository
Its v8.0.0-BETA1 release requires PHP 8.4 or later. PHP end of life dates.
symfony/security-bundle v8.0.0 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 - Removed
Symfony\Bundle\SecurityBundle\DependencyInjection\SecurityExtension::getXsdValidationBasePath
Symfony\Bundle\SecurityBundle\DependencyInjection\SecurityExtension::getXsdValidationBasePath was removed in symfony/security-bundle v8.0.0 packagist.org - Removed
Symfony\Bundle\SecurityBundle\Security\LazyFirewallContext::__invoke
Symfony\Bundle\SecurityBundle\Security\LazyFirewallContext::__invoke was removed in symfony/security-bundle v8.0.0 packagist.org - Signature changed
Symfony\Bundle\SecurityBundle\CacheWarmer\ExpressionCacheWarmer
Was class ExpressionCacheWarmer implements CacheWarmerInterface; now final class ExpressionCacheWarmer implements CacheWarmerInterface. packagist.org
symfony/security-bundle v8.0.0-BETA1 breaking changes
- Removed
XML configuration files are no longer supported, so they must be converted to another configuration format. github.com - Removed
Callable firewall listeners are no longer supported. Use firewall listener classes instead. github.com - Removed
algorithm
The deprecated algorithm option of the OIDC token handler is removed. Remove it from your configuration. github.com - Removed
base_template_class
The option is removed and configuration using it must be cleaned up. github.com - Removed
callable firewall listeners
Callable firewall listeners no longer work and must be replaced by listener classes. github.com - Removed
ExtensionInterface.getNamespace
Extensions no longer need to implement getNamespace() from the interface. github.com - Removed
ExtensionInterface.getXsdValidationBasePath
Extensions no longer need to implement getXsdValidationBasePath() from the interface. github.com - Removed
hide_user_not_found
The deprecated hide_user_not_found option is removed. Remove it from your security configuration. github.com - Removed
key
The deprecated key option of the OIDC token handler is removed. Remove it from your configuration. github.com - Removed
RateLimiterFactory
Autowiring aliases for RateLimiterFactory are removed. Inject the factory by explicit service id or name. github.com
And 8 more in this version. Sign up to see every change
symfony/security-bundle v7.0.0 breaking changes
- Removed
Symfony\Bundle\SecurityBundle\Security::ACCESS_DENIED_ERROR
Use SecurityRequestAttributes::ACCESS_DENIED_ERROR instead. packagist.org - Removed
Symfony\Bundle\SecurityBundle\Security::AUTHENTICATION_ERROR
Use SecurityRequestAttributes::AUTHENTICATION_ERROR instead. packagist.org - Removed
Symfony\Bundle\SecurityBundle\Security::LAST_USERNAME
Use SecurityRequestAttributes::LAST_USERNAME instead. packagist.org - 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 - Signature changed
Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener::getWrappedListeners
Was public function getWrappedListeners(); now public function getWrappedListeners(): array. packagist.org - Signature changed
Symfony\Bundle\SecurityBundle\DependencyInjection\Compiler\AddExpressionLanguageProvidersPass::process
Was public function process(ContainerBuilder $container); now public function process(ContainerBuilder $container): void. packagist.org - Signature changed
Symfony\Bundle\SecurityBundle\DependencyInjection\Compiler\AddSecurityVotersPass::process
Was public function process(ContainerBuilder $container); now public function process(ContainerBuilder $container): void. packagist.org - Signature changed
Symfony\Bundle\SecurityBundle\DependencyInjection\Compiler\AddSessionDomainConstraintPass::process
Was public function process(ContainerBuilder $container); now public function process(ContainerBuilder $container): void. packagist.org - Signature changed
Symfony\Bundle\SecurityBundle\DependencyInjection\Compiler\CleanRememberMeVerifierPass::process
Was public function process(ContainerBuilder $container); now public function process(ContainerBuilder $container): void. packagist.org - Signature changed
Symfony\Bundle\SecurityBundle\DependencyInjection\Compiler\MakeFirewallsEventDispatcherTraceablePass::process
Was public function process(ContainerBuilder $container); now public function process(ContainerBuilder $container): void. packagist.org
And 24 more in this version. Sign up to see every change
symfony/security-bundle v7.0.0-BETA1 breaking changes
- Removed
Twig 2 is no longer supported; upgrade to Twig 3. github.com - Removed
The package now requires PHP 8.2 or later. github.com - Removed
ContainerAwareInterface
ContainerAwareInterface, ContainerAwareTrait and ContainerAwareLoader are deprecated. github.com - Removed
deprecated code paths
Previously deprecated code paths were removed from the Security component. github.com - Removed
remaining experimental classes
Experimental classes were removed and code relying on them will break. github.com - Behavior changed
SecurityBundle
SecurityBundle must be configured once enabled; an unconfigured bundle now fails. github.com - Signature changed
Doctrine\Bridge\DoctrineTokenProvider.updateToken
The $lastUsed argument of DoctrineTokenProvider::updateToken() now accepts DateTimeInterface; update callers that pass other types. github.com - Signature changed
DoctrineTokenProvider.updateToken
The $lastUsed argument of DoctrineTokenProvider::updateToken() now accepts DateTimeInterface. Code passing other types must be updated. github.com - Signature changed
Security.login
Security::login now accepts a $badges argument, so overriding or calling it may need updating. github.com - Signature changed
Symfony\Component\Security\Http\Authenticator\Passport\Security.login
Security::login now takes a $badges argument; existing callers may need review. github.com
And 1 more in this version. Sign up to see every change
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.