symfony/security-http breaking changes
symfony/security-http v8.0.0 (November 27, 2025) is its newest release with breaking changes, 22 of them. The first: Removed Symfony\Component\Security\Http\Attribute\IsCsrfTokenValid::$methods. Every breaking API change we have recorded in symfony/security-http on Packagist: 76 breaking changes in 5 versions. Below, its 5 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version v8.2.0, released November 28, 2026. MIT license. Source repository
Its v7.0.0-BETA1 release requires PHP 8.2 or later. PHP end of life dates.
symfony/security-http v8.0.0 breaking changes
- Removed
Symfony\Component\Security\Http\Attribute\IsCsrfTokenValid::$methods
Symfony\Component\Security\Http\Attribute\IsCsrfTokenValid::$methods was removed in symfony/security-http v8.0.0 packagist.org - Removed
Symfony\Component\Security\Http\Command\OidcTokenGenerateCommand::__construct
Symfony\Component\Security\Http\Command\OidcTokenGenerateCommand::__construct was removed in symfony/security-http v8.0.0 packagist.org - Removed
Symfony\Component\Security\Http\Firewall\AbstractListener::__invoke
AbstractListener::__invoke is removed in 8.0. packagist.org - Removed
Symfony\Component\Security\Http\Logout\LogoutUrlGenerator::reset
Symfony\Component\Security\Http\Logout\LogoutUrlGenerator::reset was removed in symfony/security-http v8.0.0 packagist.org - Removed
Symfony\Component\Security\Http\RateLimiter\DefaultLoginRateLimiter::reset
Symfony\Component\Security\Http\RateLimiter\DefaultLoginRateLimiter::reset was removed in symfony/security-http v8.0.0 packagist.org - Removed
Symfony\Component\Security\Http\RememberMe\RememberMeDetails::getUserFqcn
RememberMeDetails::getUserFqcn() is deprecated and removed in 8.0. packagist.org - Behavior changed
UserBadge.__construct
UserBadge now throws a BadCredentialsException when given an empty string as $userIdentifier. github.com - Signature changed
Symfony\Component\Security\Http\AccessToken\Oidc\OidcTokenGenerator::__construct
Was public function __construct(private readonly AlgorithmManager $algorithmManager, private readonly JWKSet $jwkset, private readonly string $audience, private readonly array $issuers, private readonly string $claim = 'sub', private... packagist.org - Signature changed
Symfony\Component\Security\Http\AccessToken\Oidc\OidcTokenHandler::__construct
$signatureAlgorithm must be AlgorithmManager and $signatureKeyset must be JWKSet. packagist.org - Signature changed
Symfony\Component\Security\Http\AccessToken\Oidc\OidcTokenHandler::enableDiscovery
Was public function enableDiscovery(CacheInterface $cache, array|HttpClientInterface $client, string $oidcConfigurationCacheKey, ?string $oidcJWKSetCacheKey = null): void; now public function enableDiscovery(CacheInterface $cache... packagist.org - Signature changed
Symfony\Component\Security\Http\Attribute\IsCsrfTokenValid::__construct
Was public function __construct(/** * Sets the id, or an Expression evaluated to the id, used when generating the token. */ public string|Expression $id, /** * Sets the key of the request that contains the actual token value that should be... packagist.org - Signature changed
Symfony\Component\Security\Http\Authentication\AuthenticatorManager::__construct
The $exposeSecurityErrors argument now only accepts ExposeSecurityLevel enums. packagist.org - Signature changed
Symfony\Component\Security\Http\Authentication\UserAuthenticatorInterface::authenticateUser
Implementations of UserAuthenticatorInterface::authenticateUser() must accept the new $attributes argument. packagist.org - Signature changed
Symfony\Component\Security\Http\Authenticator\RememberMeAuthenticator::__construct
Was public function __construct(private RememberMeHandlerInterface $rememberMeHandler, #[\SensitiveParameter] TokenStorageInterface|string $tokenStorage, string|TokenStorageInterface $cookieName, LoggerInterface|string|null $logger =... packagist.org - Signature changed
Symfony\Component\Security\Http\EventListener\LoginThrottlingListener::__construct
Was public function __construct(private RequestStack $requestStack, private RequestRateLimiterInterface $limiter, private bool $stateless = true); now public function __construct(private RequestStack $requestStack, private... packagist.org - Signature changed
Symfony\Component\Security\Http\Firewall::callListeners
Was protected function callListeners(RequestEvent $event, iterable $listeners); now protected function callListeners(RequestEvent $event, iterable $listeners): void. packagist.org - Signature changed
Symfony\Component\Security\Http\Firewall::getSubscribedEvents
Was public static function getSubscribedEvents(); now public static function getSubscribedEvents(): array. packagist.org - Signature changed
Symfony\Component\Security\Http\Firewall::onKernelFinishRequest
Was public function onKernelFinishRequest(FinishRequestEvent $event); now public function onKernelFinishRequest(FinishRequestEvent $event): void. packagist.org - Signature changed
Symfony\Component\Security\Http\Firewall::onKernelRequest
Was public function onKernelRequest(RequestEvent $event); now public function onKernelRequest(RequestEvent $event): void. packagist.org - Signature changed
Symfony\Component\Security\Http\Logout\LogoutUrlGenerator
Was class LogoutUrlGenerator implements ResetInterface; now class LogoutUrlGenerator. packagist.org - Signature changed
Symfony\Component\Security\Http\RememberMe\PersistentRememberMeHandler::__construct
Was public function __construct(private TokenProviderInterface $tokenProvider, UserProviderInterface $userProvider, RequestStack $requestStack, array $options, ?LoggerInterface $logger = null, private ?TokenVerifierInterface $tokenVerifier... packagist.org - Signature changed
Symfony\Component\Security\Http\RememberMe\RememberMeDetails::__construct
Subclasses overriding the RememberMeDetails constructor must drop the $userFqcn parameter. packagist.org
symfony/security-http v8.0.0-BETA1 breaking changes
- Removed
RememberMeToken.getSecret
RememberMeToken::getSecret() has been removed. github.com - Behavior changed
IsGranted
Removes final from IsGranted attribute in symfony/security-http 8.0.0-BETA1 github.com - Behavior changed
PHP
Symfony 8 requires PHP >= 8.4. github.com
symfony/security-http v7.0.0 breaking changes
- Removed
Symfony\Component\Security\Http\Controller\UserValueResolver::supports
Use resolve instead. packagist.org - Removed
Symfony\Component\Security\Http\Logout\LogoutUrlGenerator::reset
Symfony\Component\Security\Http\Logout\LogoutUrlGenerator::reset was removed in symfony/security-http v7.0.0 packagist.org - Removed
Symfony\Component\Security\Http\RateLimiter\DefaultLoginRateLimiter::reset
Symfony\Component\Security\Http\RateLimiter\DefaultLoginRateLimiter::reset was removed in symfony/security-http v7.0.0 packagist.org - Signature changed
Symfony\Component\Security\Http\AccessMap::add
Was public function add(RequestMatcherInterface $requestMatcher, array $attributes = [], ?string $channel = null); now public function add(RequestMatcherInterface $requestMatcher, array $attributes = [], string $channel = null): void. packagist.org - Signature changed
Symfony\Component\Security\Http\AccessToken\Oidc\OidcTokenHandler::__construct
Was public function __construct(private Algorithm $signatureAlgorithm, private JWK $jwk, private string $audience, private array $issuers, private string $claim = 'sub', private ?LoggerInterface $logger = null, private ?ClockInterface... packagist.org - Signature changed
Symfony\Component\Security\Http\Authentication\DefaultAuthenticationFailureHandler::$defaultOptions
Was protected $defaultOptions; now protected array $defaultOptions. packagist.org - Signature changed
Symfony\Component\Security\Http\Authentication\DefaultAuthenticationFailureHandler::$httpKernel
Was protected $httpKernel; now protected HttpKernelInterface $httpKernel. packagist.org - Signature changed
Symfony\Component\Security\Http\Authentication\DefaultAuthenticationFailureHandler::$httpUtils
Was protected $httpUtils; now protected HttpUtils $httpUtils. packagist.org - Signature changed
Symfony\Component\Security\Http\Authentication\DefaultAuthenticationFailureHandler::$logger
Was protected $logger; now protected ?LoggerInterface $logger. packagist.org - Signature changed
Symfony\Component\Security\Http\Authentication\DefaultAuthenticationFailureHandler::$options
Was protected $options; now protected array $options. packagist.org
And 28 more in this version. Sign up to see every change
symfony/security-http v7.0.0-RC2 breaking changes
- Signature changed
DefaultLoginRateLimiter
DefaultLoginRateLimiter now requires a secret. Code that constructs it without one must pass a secret. github.com
symfony/security-http v7.0.0-BETA1 breaking changes
- Removed
Deprecated code paths were removed from the package. Code relying on them must be updated. github.com - Removed
Deprecated HttpKernel code paths were removed. Code relying on them must be updated. github.com - Removed
Deprecated Security code paths were removed. Code relying on them must be updated. github.com - Removed
Compatibility layers for newly added methods and parameters were removed. Code relying on them must be updated. github.com - Removed
Experimental classes were removed from the package. Code that uses them must be changed. github.com - Behavior changed
Public and protected properties now declare types. Subclasses that redeclare these properties must use compatible types. github.com - Behavior changed
PersistentToken
PersistentToken instances can no longer be modified after creation. Code that changes them must create new instances instead. github.com - Configuration changed
The package now requires PHP 8.2 or later. Projects on older PHP versions must upgrade before updating. github.com - Signature changed
Magic methods now declare return types. Overrides must declare compatible return types. github.com - Signature changed
Methods now declare native return types. Subclasses and custom code that override these methods must add matching return types. github.com
And 2 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.