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

# symfony/routing breaking changes

symfony/routing v8.0.0 (November 27, 2025) is its newest release with breaking changes, 41 of them. The first: Removes annotation class aliases in favor of attributes in symfony/routing v8.0.0. Every breaking API change we have recorded in symfony/routing on Packagist: 173 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/routing)

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): 51 breaking changes in 2 versions.

## symfony/routing v8.0.0 breaking changes

symfony/routing v8.0.0, released November 27, 2025: 41 breaking changes.

- **Removed**  

Class aliases in the Annotation namespace are removed. Use attributes instead. [github.com](https://github.com/symfony/routing/blob/v8.0.0/CHANGELOG.md)
- **Removed**  

XML configuration files are no longer supported. Convert them to another supported format. [github.com](https://github.com/symfony/routing/blob/v8.0.0/CHANGELOG.md)
- **Removed**  

Attribute classes no longer have getters and setters. Use their public properties instead. [github.com](https://github.com/symfony/routing/blob/v8.0.0/CHANGELOG.md)
- **Removed**  

PHP config files can no longer access the loader's internal scope. Use only the loader's public API instead. [github.com](https://github.com/symfony/routing/blob/v8.0.0/CHANGELOG.md)
- **Removed** `Symfony\Component\Routing\Annotation\Route`  

Symfony\\Component\\Routing\\Annotation\\Route was removed in symfony/routing v8.0.0 [packagist.org](https://packagist.org/packages/symfony/routing#v8.0.0)
- **Removed** `Symfony\Component\Routing\Attribute\DeprecatedAlias::getAliasName`  

Symfony\\Component\\Routing\\Attribute\\DeprecatedAlias::getAliasName was removed in symfony/routing v8.0.0 [packagist.org](https://packagist.org/packages/symfony/routing#v8.0.0)
- **Removed** `Symfony\Component\Routing\Attribute\DeprecatedAlias::getMessage`  

Symfony\\Component\\Routing\\Attribute\\DeprecatedAlias::getMessage was removed in symfony/routing v8.0.0 [packagist.org](https://packagist.org/packages/symfony/routing#v8.0.0)
- **Removed** `Symfony\Component\Routing\Attribute\DeprecatedAlias::getPackage`  

Symfony\\Component\\Routing\\Attribute\\DeprecatedAlias::getPackage was removed in symfony/routing v8.0.0 [packagist.org](https://packagist.org/packages/symfony/routing#v8.0.0)
- **Removed** `Symfony\Component\Routing\Attribute\DeprecatedAlias::getVersion`  

Symfony\\Component\\Routing\\Attribute\\DeprecatedAlias::getVersion was removed in symfony/routing v8.0.0 [packagist.org](https://packagist.org/packages/symfony/routing#v8.0.0)
- **Removed** `Symfony\Component\Routing\Attribute\Route::getAliases`  

Symfony\\Component\\Routing\\Attribute\\Route::getAliases was removed in symfony/routing v8.0.0 [packagist.org](https://packagist.org/packages/symfony/routing#v8.0.0)
- **Removed** `Symfony\Component\Routing\Attribute\Route::getCondition`  

Symfony\\Component\\Routing\\Attribute\\Route::getCondition was removed in symfony/routing v8.0.0 [packagist.org](https://packagist.org/packages/symfony/routing#v8.0.0)
- **Removed** `Symfony\Component\Routing\Attribute\Route::getDefaults`  

Symfony\\Component\\Routing\\Attribute\\Route::getDefaults was removed in symfony/routing v8.0.0 [packagist.org](https://packagist.org/packages/symfony/routing#v8.0.0)
- **Removed** `Symfony\Component\Routing\Attribute\Route::getHost`  

Symfony\\Component\\Routing\\Attribute\\Route::getHost was removed in symfony/routing v8.0.0 [packagist.org](https://packagist.org/packages/symfony/routing#v8.0.0)
- **Removed** `Symfony\Component\Routing\Attribute\Route::getLocalizedPaths`  

Symfony\\Component\\Routing\\Attribute\\Route::getLocalizedPaths was removed in symfony/routing v8.0.0 [packagist.org](https://packagist.org/packages/symfony/routing#v8.0.0)
- **Removed** `Symfony\Component\Routing\Attribute\Route::getMethods`  

Symfony\\Component\\Routing\\Attribute\\Route::getMethods was removed in symfony/routing v8.0.0 [packagist.org](https://packagist.org/packages/symfony/routing#v8.0.0)
- **Removed** `Symfony\Component\Routing\Attribute\Route::getName`  

Symfony\\Component\\Routing\\Attribute\\Route::getName was removed in symfony/routing v8.0.0 [packagist.org](https://packagist.org/packages/symfony/routing#v8.0.0)
- **Removed** `Symfony\Component\Routing\Attribute\Route::getOptions`  

Symfony\\Component\\Routing\\Attribute\\Route::getOptions was removed in symfony/routing v8.0.0 [packagist.org](https://packagist.org/packages/symfony/routing#v8.0.0)
- **Removed** `Symfony\Component\Routing\Attribute\Route::getPath`  

Symfony\\Component\\Routing\\Attribute\\Route::getPath was removed in symfony/routing v8.0.0 [packagist.org](https://packagist.org/packages/symfony/routing#v8.0.0)
- **Removed** `Symfony\Component\Routing\Attribute\Route::getPriority`  

Symfony\\Component\\Routing\\Attribute\\Route::getPriority was removed in symfony/routing v8.0.0 [packagist.org](https://packagist.org/packages/symfony/routing#v8.0.0)
- **Removed** `Symfony\Component\Routing\Attribute\Route::getRequirements`  

Symfony\\Component\\Routing\\Attribute\\Route::getRequirements was removed in symfony/routing v8.0.0 [packagist.org](https://packagist.org/packages/symfony/routing#v8.0.0)
- **Removed** `Symfony\Component\Routing\Attribute\Route::getSchemes`  

Symfony\\Component\\Routing\\Attribute\\Route::getSchemes was removed in symfony/routing v8.0.0 [packagist.org](https://packagist.org/packages/symfony/routing#v8.0.0)
- **Removed** `Symfony\Component\Routing\Attribute\Route::setAliases`  

Symfony\\Component\\Routing\\Attribute\\Route::setAliases was removed in symfony/routing v8.0.0 [packagist.org](https://packagist.org/packages/symfony/routing#v8.0.0)
- **Removed** `Symfony\Component\Routing\Attribute\Route::setCondition`  

Symfony\\Component\\Routing\\Attribute\\Route::setCondition was removed in symfony/routing v8.0.0 [packagist.org](https://packagist.org/packages/symfony/routing#v8.0.0)
- **Removed** `Symfony\Component\Routing\Attribute\Route::setDefaults`  

Symfony\\Component\\Routing\\Attribute\\Route::setDefaults was removed in symfony/routing v8.0.0 [packagist.org](https://packagist.org/packages/symfony/routing#v8.0.0)
- **Removed** `Symfony\Component\Routing\Attribute\Route::setHost`  

Symfony\\Component\\Routing\\Attribute\\Route::setHost was removed in symfony/routing v8.0.0 [packagist.org](https://packagist.org/packages/symfony/routing#v8.0.0)
- **Removed** `Symfony\Component\Routing\Attribute\Route::setLocalizedPaths`  

Symfony\\Component\\Routing\\Attribute\\Route::setLocalizedPaths was removed in symfony/routing v8.0.0 [packagist.org](https://packagist.org/packages/symfony/routing#v8.0.0)
- **Removed** `Symfony\Component\Routing\Attribute\Route::setMethods`  

Symfony\\Component\\Routing\\Attribute\\Route::setMethods was removed in symfony/routing v8.0.0 [packagist.org](https://packagist.org/packages/symfony/routing#v8.0.0)
- **Removed** `Symfony\Component\Routing\Attribute\Route::setName`  

Symfony\\Component\\Routing\\Attribute\\Route::setName was removed in symfony/routing v8.0.0 [packagist.org](https://packagist.org/packages/symfony/routing#v8.0.0)
- **Removed** `Symfony\Component\Routing\Attribute\Route::setOptions`  

Symfony\\Component\\Routing\\Attribute\\Route::setOptions was removed in symfony/routing v8.0.0 [packagist.org](https://packagist.org/packages/symfony/routing#v8.0.0)
- **Removed** `Symfony\Component\Routing\Attribute\Route::setPath`  

Symfony\\Component\\Routing\\Attribute\\Route::setPath was removed in symfony/routing v8.0.0 [packagist.org](https://packagist.org/packages/symfony/routing#v8.0.0)
- **Removed** `Symfony\Component\Routing\Attribute\Route::setPriority`  

Symfony\\Component\\Routing\\Attribute\\Route::setPriority was removed in symfony/routing v8.0.0 [packagist.org](https://packagist.org/packages/symfony/routing#v8.0.0)
- **Removed** `Symfony\Component\Routing\Attribute\Route::setRequirements`  

Symfony\\Component\\Routing\\Attribute\\Route::setRequirements was removed in symfony/routing v8.0.0 [packagist.org](https://packagist.org/packages/symfony/routing#v8.0.0)
- **Removed** `Symfony\Component\Routing\Attribute\Route::setSchemes`  

Symfony\\Component\\Routing\\Attribute\\Route::setSchemes was removed in symfony/routing v8.0.0 [packagist.org](https://packagist.org/packages/symfony/routing#v8.0.0)
- **Removed** `Symfony\Component\Routing\Loader\AttributeClassLoader::$routeAnnotationClass`  

The protected property is removed. Use setRouteAttributeClass instead. [packagist.org](https://packagist.org/packages/symfony/routing#v8.0.0)
- **Removed** `Symfony\Component\Routing\Loader\AttributeClassLoader::setRouteAnnotationClass`  

The method is removed. Use setRouteAttributeClass instead. [packagist.org](https://packagist.org/packages/symfony/routing#v8.0.0)
- **Removed** `Symfony\Component\Routing\Loader\XmlFileLoader`  

Symfony\\Component\\Routing\\Loader\\XmlFileLoader was removed in symfony/routing v8.0.0 [packagist.org](https://packagist.org/packages/symfony/routing#v8.0.0)
- **Behavior changed** `UrlGenerator`  

Passing a non-array \_query parameter to UrlGenerator now throws InvalidParameterException. Pass an array instead. [github.com](https://github.com/symfony/routing/blob/v8.0.0/CHANGELOG.md)
- **Signature changed** `Symfony\Component\Routing\CompiledRoute`  

Was class CompiledRoute; now class CompiledRoute implements \\Serializable. [packagist.org](https://packagist.org/packages/symfony/routing#v8.0.0)
- **Signature changed** `Symfony\Component\Routing\Loader\AttributeClassLoader::configureRoute`  

Was abstract protected function configureRoute(Route $route, \\ReflectionClass $class, \\ReflectionMethod $method, object $attr); now abstract protected function configureRoute(Route $route, \\ReflectionClass $class, \\ReflectionMethod... [packagist.org](https://packagist.org/packages/symfony/routing#v8.0.0)
- **Signature changed** `Symfony\Component\Routing\Loader\AttributeClassLoader::getDefaultRouteName`  

Was protected function getDefaultRouteName(\\ReflectionClass $class, \\ReflectionMethod $method); now protected function getDefaultRouteName(\\ReflectionClass $class, \\ReflectionMethod $method): string. [packagist.org](https://packagist.org/packages/symfony/routing#v8.0.0)
- **Signature changed** `Symfony\Component\Routing\Route`  

Was class Route; now class Route implements \\Serializable. [packagist.org](https://packagist.org/packages/symfony/routing#v8.0.0)

## symfony/routing v8.0.0-BETA1 breaking changes

symfony/routing v8.0.0-BETA1, released November 27, 2025: 10 breaking changes.

- **Removed**  

XML configuration files are no longer supported; convert them to another supported format. [github.com](https://github.com/symfony/routing/releases/tag/v8.0.0-BETA1)
- **Removed**  

Annotation aliases and getters and setters are removed; use public properties on attributes instead. [github.com](https://github.com/symfony/routing/releases/tag/v8.0.0-BETA1)
- **Removed**  

Fluent PHP configuration files are no longer supported. Move that configuration to another supported format. [github.com](https://github.com/symfony/routing/releases/tag/v8.0.0-BETA1)
- **Removed**  

PHP config files can no longer access $this or the loader's internal state. [github.com](https://github.com/symfony/routing/releases/tag/v8.0.0-BETA1)
- **Removed**  

Symfony 8 requires PHP 8.4 or later. [github.com](https://github.com/symfony/routing/releases/tag/v8.0.0-BETA1)
- **Removed** `AttributeClassLoader property and setter`  

The deprecated AttributeClassLoader property and its setter have been removed. [github.com](https://github.com/symfony/routing/releases/tag/v8.0.0-BETA1)
- **Removed** `Symfony\Component\Routing\Attribute\Route::getEnv`  

The deprecated getEnv method has been removed. [packagist.org](https://packagist.org/packages/symfony/routing#v8.0.0)
- **Removed** `Symfony\Component\Routing\Attribute\Route::setEnv`  

The deprecated setEnv method has been removed. [packagist.org](https://packagist.org/packages/symfony/routing#v8.0.0)
- **Behavior changed**  

Return types are enforced on all components, so code overriding methods with incompatible return types may break. [github.com](https://github.com/symfony/routing/releases/tag/v8.0.0-BETA1)
- **Behavior changed** `_query`  

Passing a non-array \_query parameter now throws an exception instead of being accepted. [github.com](https://github.com/symfony/routing/releases/tag/v8.0.0-BETA1)

## symfony/routing v7.0.0 breaking changes

symfony/routing v7.0.0, released November 29, 2023: 114 breaking changes.

- **Removed** `Symfony\Component\Routing\Loader\AnnotationClassLoader`  

Symfony\\Component\\Routing\\Loader\\AnnotationClassLoader was removed in symfony/routing v7.0.0 [packagist.org](https://packagist.org/packages/symfony/routing#v7.0.0)
- **Removed** `Symfony\Component\Routing\Loader\AnnotationDirectoryLoader`  

Symfony\\Component\\Routing\\Loader\\AnnotationDirectoryLoader was removed in symfony/routing v7.0.0 [packagist.org](https://packagist.org/packages/symfony/routing#v7.0.0)
- **Removed** `Symfony\Component\Routing\Loader\AnnotationFileLoader`  

Symfony\\Component\\Routing\\Loader\\AnnotationFileLoader was removed in symfony/routing v7.0.0 [packagist.org](https://packagist.org/packages/symfony/routing#v7.0.0)
- **Removed** `Symfony\Component\Routing\Loader\AttributeClassLoader::$env`  

Symfony\\Component\\Routing\\Loader\\AttributeClassLoader::$env was removed in symfony/routing v7.0.0 [packagist.org](https://packagist.org/packages/symfony/routing#v7.0.0)
- **Removed** `Symfony\Component\Routing\Loader\AttributeClassLoader::$reader`  

Symfony\\Component\\Routing\\Loader\\AttributeClassLoader::$reader was removed in symfony/routing v7.0.0 [packagist.org](https://packagist.org/packages/symfony/routing#v7.0.0)
- **Removed** `Symfony\Component\Routing\Loader\Configurator\CollectionConfigurator::__serialize`  

Symfony\\Component\\Routing\\Loader\\Configurator\\CollectionConfigurator::\_\_serialize was removed in symfony/routing v7.0.0 [packagist.org](https://packagist.org/packages/symfony/routing#v7.0.0)
- **Removed** `Symfony\Component\Routing\Loader\Configurator\CollectionConfigurator::__unserialize`  

Symfony\\Component\\Routing\\Loader\\Configurator\\CollectionConfigurator::\_\_unserialize was removed in symfony/routing v7.0.0 [packagist.org](https://packagist.org/packages/symfony/routing#v7.0.0)
- **Removed** `Symfony\Component\Routing\Loader\Configurator\ImportConfigurator::__serialize`  

Symfony\\Component\\Routing\\Loader\\Configurator\\ImportConfigurator::\_\_serialize was removed in symfony/routing v7.0.0 [packagist.org](https://packagist.org/packages/symfony/routing#v7.0.0)
- **Removed** `Symfony\Component\Routing\Loader\Configurator\ImportConfigurator::__unserialize`  

Symfony\\Component\\Routing\\Loader\\Configurator\\ImportConfigurator::\_\_unserialize was removed in symfony/routing v7.0.0 [packagist.org](https://packagist.org/packages/symfony/routing#v7.0.0)
- **Removed** `Symfony\Component\Routing\RouteCollection::getPriority`  

Symfony\\Component\\Routing\\RouteCollection::getPriority was removed in symfony/routing v7.0.0 [packagist.org](https://packagist.org/packages/symfony/routing#v7.0.0)

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

## symfony/routing v7.0.0-BETA1 breaking changes

symfony/routing v7.0.0-BETA1, released November 29, 2023: 8 breaking changes.

- **Removed**  

The package now requires PHP 8.2 or later. Upgrade PHP before upgrading this package. [github.com](https://github.com/symfony/routing/releases/tag/v7.0.0-BETA1)
- **Removed**  

Doctrine annotation support for routing is removed. Use PHP attributes for route definitions. [github.com](https://github.com/symfony/routing/releases/tag/v7.0.0-BETA1)
- **Removed**  

Code paths that were deprecated earlier are removed in this major release. Stop using them. [github.com](https://github.com/symfony/routing/releases/tag/v7.0.0-BETA1)
- **Removed**  

BC layers added for new methods and parameters are removed. Code relying on those compatibility paths must be updated. [github.com](https://github.com/symfony/routing/releases/tag/v7.0.0-BETA1)
- **Signature changed**  

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

Methods now declare native return types. Subclasses overriding these methods must add matching return types. [github.com](https://github.com/symfony/routing/releases/tag/v7.0.0-BETA1)
- **Signature changed**  

Return types are now native declarations, which may affect classes that extend or override these methods. [github.com](https://github.com/symfony/routing/releases/tag/v7.0.0-BETA1)
- **Signature changed**  

Public and protected properties gained type declarations. Subclasses redeclaring them must match the types. [github.com](https://github.com/symfony/routing/releases/tag/v7.0.0-BETA1)

## 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.
