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

# 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

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

Its v7.0.0-BETA1 release requires [PHP 8.2](https://since.dev/calendar/php/8.2.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): 25 breaking changes in 2 versions.

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

symfony/security-http v8.0.0, released November 27, 2025: 22 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](https://packagist.org/packages/symfony/security-http#v8.0.0)
- **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](https://packagist.org/packages/symfony/security-http#v8.0.0)
- **Removed** `Symfony\Component\Security\Http\Firewall\AbstractListener::__invoke`  

AbstractListener::\_\_invoke is removed in 8.0. [packagist.org](https://packagist.org/packages/symfony/security-http#v8.0.0)
- **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](https://packagist.org/packages/symfony/security-http#v8.0.0)
- **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](https://packagist.org/packages/symfony/security-http#v8.0.0)
- **Removed** `Symfony\Component\Security\Http\RememberMe\RememberMeDetails::getUserFqcn`  

RememberMeDetails::getUserFqcn() is deprecated and removed in 8.0. [packagist.org](https://packagist.org/packages/symfony/security-http#v8.0.0)
- **Behavior changed** `UserBadge.__construct`  

UserBadge now throws a BadCredentialsException when given an empty string as $userIdentifier. [github.com](https://github.com/symfony/security-http/blob/v8.0.0/CHANGELOG.md)
- **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](https://packagist.org/packages/symfony/security-http#v8.0.0)
- **Signature changed** `Symfony\Component\Security\Http\AccessToken\Oidc\OidcTokenHandler::__construct`  

$signatureAlgorithm must be AlgorithmManager and $signatureKeyset must be JWKSet. [packagist.org](https://packagist.org/packages/symfony/security-http#v8.0.0)
- **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](https://packagist.org/packages/symfony/security-http#v8.0.0)
- **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](https://packagist.org/packages/symfony/security-http#v8.0.0)
- **Signature changed** `Symfony\Component\Security\Http\Authentication\AuthenticatorManager::__construct`  

The $exposeSecurityErrors argument now only accepts ExposeSecurityLevel enums. [packagist.org](https://packagist.org/packages/symfony/security-http#v8.0.0)
- **Signature changed** `Symfony\Component\Security\Http\Authentication\UserAuthenticatorInterface::authenticateUser`  

Implementations of UserAuthenticatorInterface::authenticateUser() must accept the new $attributes argument. [packagist.org](https://packagist.org/packages/symfony/security-http#v8.0.0)
- **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](https://packagist.org/packages/symfony/security-http#v8.0.0)
- **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](https://packagist.org/packages/symfony/security-http#v8.0.0)
- **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](https://packagist.org/packages/symfony/security-http#v8.0.0)
- **Signature changed** `Symfony\Component\Security\Http\Firewall::getSubscribedEvents`  

Was public static function getSubscribedEvents(); now public static function getSubscribedEvents(): array. [packagist.org](https://packagist.org/packages/symfony/security-http#v8.0.0)
- **Signature changed** `Symfony\Component\Security\Http\Firewall::onKernelFinishRequest`  

Was public function onKernelFinishRequest(FinishRequestEvent $event); now public function onKernelFinishRequest(FinishRequestEvent $event): void. [packagist.org](https://packagist.org/packages/symfony/security-http#v8.0.0)
- **Signature changed** `Symfony\Component\Security\Http\Firewall::onKernelRequest`  

Was public function onKernelRequest(RequestEvent $event); now public function onKernelRequest(RequestEvent $event): void. [packagist.org](https://packagist.org/packages/symfony/security-http#v8.0.0)
- **Signature changed** `Symfony\Component\Security\Http\Logout\LogoutUrlGenerator`  

Was class LogoutUrlGenerator implements ResetInterface; now class LogoutUrlGenerator. [packagist.org](https://packagist.org/packages/symfony/security-http#v8.0.0)
- **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](https://packagist.org/packages/symfony/security-http#v8.0.0)
- **Signature changed** `Symfony\Component\Security\Http\RememberMe\RememberMeDetails::__construct`  

Subclasses overriding the RememberMeDetails constructor must drop the $userFqcn parameter. [packagist.org](https://packagist.org/packages/symfony/security-http#v8.0.0)

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

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

- **Removed** `RememberMeToken.getSecret`  

RememberMeToken::getSecret() has been removed. [github.com](https://github.com/symfony/security-http/releases/tag/v8.0.0-BETA1)
- **Behavior changed** `IsGranted`  

Removes final from IsGranted attribute in symfony/security-http 8.0.0-BETA1 [github.com](https://github.com/symfony/security-http/releases/tag/v8.0.0-BETA1)
- **Behavior changed** `PHP`  

Symfony 8 requires PHP >= 8.4. [github.com](https://github.com/symfony/security-http/releases/tag/v8.0.0-BETA1)

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

symfony/security-http v7.0.0, released November 29, 2023: 38 breaking changes.

- **Removed** `Symfony\Component\Security\Http\Controller\UserValueResolver::supports`  

Use resolve instead. [packagist.org](https://packagist.org/packages/symfony/security-http#v7.0.0)
- **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](https://packagist.org/packages/symfony/security-http#v7.0.0)
- **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](https://packagist.org/packages/symfony/security-http#v7.0.0)
- **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](https://packagist.org/packages/symfony/security-http#v7.0.0)
- **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](https://packagist.org/packages/symfony/security-http#v7.0.0)
- **Signature changed** `Symfony\Component\Security\Http\Authentication\DefaultAuthenticationFailureHandler::$defaultOptions`  

Was protected $defaultOptions; now protected array $defaultOptions. [packagist.org](https://packagist.org/packages/symfony/security-http#v7.0.0)
- **Signature changed** `Symfony\Component\Security\Http\Authentication\DefaultAuthenticationFailureHandler::$httpKernel`  

Was protected $httpKernel; now protected HttpKernelInterface $httpKernel. [packagist.org](https://packagist.org/packages/symfony/security-http#v7.0.0)
- **Signature changed** `Symfony\Component\Security\Http\Authentication\DefaultAuthenticationFailureHandler::$httpUtils`  

Was protected $httpUtils; now protected HttpUtils $httpUtils. [packagist.org](https://packagist.org/packages/symfony/security-http#v7.0.0)
- **Signature changed** `Symfony\Component\Security\Http\Authentication\DefaultAuthenticationFailureHandler::$logger`  

Was protected $logger; now protected ?LoggerInterface $logger. [packagist.org](https://packagist.org/packages/symfony/security-http#v7.0.0)
- **Signature changed** `Symfony\Component\Security\Http\Authentication\DefaultAuthenticationFailureHandler::$options`  

Was protected $options; now protected array $options. [packagist.org](https://packagist.org/packages/symfony/security-http#v7.0.0)

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

## symfony/security-http v7.0.0-RC2 breaking changes

symfony/security-http v7.0.0-RC2, released November 29, 2023: 1 breaking change.

- **Signature changed** `DefaultLoginRateLimiter`  

DefaultLoginRateLimiter now requires a secret. Code that constructs it without one must pass a secret. [github.com](https://github.com/symfony/security-http/releases/tag/v7.0.0-RC2)

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

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

- **Removed**  

Deprecated code paths were removed from the package. Code relying on them must be updated. [github.com](https://github.com/symfony/security-http/releases/tag/v7.0.0-BETA1)
- **Removed**  

Deprecated HttpKernel code paths were removed. Code relying on them must be updated. [github.com](https://github.com/symfony/security-http/releases/tag/v7.0.0-BETA1)
- **Removed**  

Deprecated Security code paths were removed. Code relying on them must be updated. [github.com](https://github.com/symfony/security-http/releases/tag/v7.0.0-BETA1)
- **Removed**  

Compatibility layers for newly added methods and parameters were removed. Code relying on them must be updated. [github.com](https://github.com/symfony/security-http/releases/tag/v7.0.0-BETA1)
- **Removed**  

Experimental classes were removed from the package. Code that uses them must be changed. [github.com](https://github.com/symfony/security-http/releases/tag/v7.0.0-BETA1)
- **Behavior changed**  

Public and protected properties now declare types. Subclasses that redeclare these properties must use compatible types. [github.com](https://github.com/symfony/security-http/releases/tag/v7.0.0-BETA1)
- **Behavior changed** `PersistentToken`  

PersistentToken instances can no longer be modified after creation. Code that changes them must create new instances instead. [github.com](https://github.com/symfony/security-http/releases/tag/v7.0.0-BETA1)
- **Configuration changed**  

The package now requires PHP 8.2 or later. Projects on older PHP versions must upgrade before updating. [github.com](https://github.com/symfony/security-http/releases/tag/v7.0.0-BETA1)
- **Signature changed**  

Magic methods now declare return types. Overrides must declare compatible return types. [github.com](https://github.com/symfony/security-http/releases/tag/v7.0.0-BETA1)
- **Signature changed**  

Methods now declare native return types. Subclasses and custom code that override these methods must add matching return types. [github.com](https://github.com/symfony/security-http/releases/tag/v7.0.0-BETA1)

And 2 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.
