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
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/routing v8.0.0 breaking changes
- Removed
Class aliases in the Annotation namespace are removed. Use attributes instead. github.com - Removed
XML configuration files are no longer supported. Convert them to another supported format. github.com - Removed
Attribute classes no longer have getters and setters. Use their public properties instead. github.com - Removed
PHP config files can no longer access the loader's internal scope. Use only the loader's public API instead. github.com - Removed
Symfony\Component\Routing\Annotation\Route
Symfony\Component\Routing\Annotation\Route was removed in symfony/routing v8.0.0 packagist.org - Removed
Symfony\Component\Routing\Attribute\DeprecatedAlias::getAliasName
Symfony\Component\Routing\Attribute\DeprecatedAlias::getAliasName was removed in symfony/routing v8.0.0 packagist.org - Removed
Symfony\Component\Routing\Attribute\DeprecatedAlias::getMessage
Symfony\Component\Routing\Attribute\DeprecatedAlias::getMessage was removed in symfony/routing v8.0.0 packagist.org - Removed
Symfony\Component\Routing\Attribute\DeprecatedAlias::getPackage
Symfony\Component\Routing\Attribute\DeprecatedAlias::getPackage was removed in symfony/routing v8.0.0 packagist.org - Removed
Symfony\Component\Routing\Attribute\DeprecatedAlias::getVersion
Symfony\Component\Routing\Attribute\DeprecatedAlias::getVersion was removed in symfony/routing v8.0.0 packagist.org - Removed
Symfony\Component\Routing\Attribute\Route::getAliases
Symfony\Component\Routing\Attribute\Route::getAliases was removed in symfony/routing v8.0.0 packagist.org - Removed
Symfony\Component\Routing\Attribute\Route::getCondition
Symfony\Component\Routing\Attribute\Route::getCondition was removed in symfony/routing v8.0.0 packagist.org - Removed
Symfony\Component\Routing\Attribute\Route::getDefaults
Symfony\Component\Routing\Attribute\Route::getDefaults was removed in symfony/routing v8.0.0 packagist.org - Removed
Symfony\Component\Routing\Attribute\Route::getHost
Symfony\Component\Routing\Attribute\Route::getHost was removed in symfony/routing v8.0.0 packagist.org - Removed
Symfony\Component\Routing\Attribute\Route::getLocalizedPaths
Symfony\Component\Routing\Attribute\Route::getLocalizedPaths was removed in symfony/routing v8.0.0 packagist.org - Removed
Symfony\Component\Routing\Attribute\Route::getMethods
Symfony\Component\Routing\Attribute\Route::getMethods was removed in symfony/routing v8.0.0 packagist.org - Removed
Symfony\Component\Routing\Attribute\Route::getName
Symfony\Component\Routing\Attribute\Route::getName was removed in symfony/routing v8.0.0 packagist.org - Removed
Symfony\Component\Routing\Attribute\Route::getOptions
Symfony\Component\Routing\Attribute\Route::getOptions was removed in symfony/routing v8.0.0 packagist.org - Removed
Symfony\Component\Routing\Attribute\Route::getPath
Symfony\Component\Routing\Attribute\Route::getPath was removed in symfony/routing v8.0.0 packagist.org - Removed
Symfony\Component\Routing\Attribute\Route::getPriority
Symfony\Component\Routing\Attribute\Route::getPriority was removed in symfony/routing v8.0.0 packagist.org - Removed
Symfony\Component\Routing\Attribute\Route::getRequirements
Symfony\Component\Routing\Attribute\Route::getRequirements was removed in symfony/routing v8.0.0 packagist.org - Removed
Symfony\Component\Routing\Attribute\Route::getSchemes
Symfony\Component\Routing\Attribute\Route::getSchemes was removed in symfony/routing v8.0.0 packagist.org - Removed
Symfony\Component\Routing\Attribute\Route::setAliases
Symfony\Component\Routing\Attribute\Route::setAliases was removed in symfony/routing v8.0.0 packagist.org - Removed
Symfony\Component\Routing\Attribute\Route::setCondition
Symfony\Component\Routing\Attribute\Route::setCondition was removed in symfony/routing v8.0.0 packagist.org - Removed
Symfony\Component\Routing\Attribute\Route::setDefaults
Symfony\Component\Routing\Attribute\Route::setDefaults was removed in symfony/routing v8.0.0 packagist.org - Removed
Symfony\Component\Routing\Attribute\Route::setHost
Symfony\Component\Routing\Attribute\Route::setHost was removed in symfony/routing v8.0.0 packagist.org - Removed
Symfony\Component\Routing\Attribute\Route::setLocalizedPaths
Symfony\Component\Routing\Attribute\Route::setLocalizedPaths was removed in symfony/routing v8.0.0 packagist.org - Removed
Symfony\Component\Routing\Attribute\Route::setMethods
Symfony\Component\Routing\Attribute\Route::setMethods was removed in symfony/routing v8.0.0 packagist.org - Removed
Symfony\Component\Routing\Attribute\Route::setName
Symfony\Component\Routing\Attribute\Route::setName was removed in symfony/routing v8.0.0 packagist.org - Removed
Symfony\Component\Routing\Attribute\Route::setOptions
Symfony\Component\Routing\Attribute\Route::setOptions was removed in symfony/routing v8.0.0 packagist.org - Removed
Symfony\Component\Routing\Attribute\Route::setPath
Symfony\Component\Routing\Attribute\Route::setPath was removed in symfony/routing v8.0.0 packagist.org - Removed
Symfony\Component\Routing\Attribute\Route::setPriority
Symfony\Component\Routing\Attribute\Route::setPriority was removed in symfony/routing v8.0.0 packagist.org - Removed
Symfony\Component\Routing\Attribute\Route::setRequirements
Symfony\Component\Routing\Attribute\Route::setRequirements was removed in symfony/routing v8.0.0 packagist.org - Removed
Symfony\Component\Routing\Attribute\Route::setSchemes
Symfony\Component\Routing\Attribute\Route::setSchemes was removed in symfony/routing v8.0.0 packagist.org - Removed
Symfony\Component\Routing\Loader\AttributeClassLoader::$routeAnnotationClass
The protected property is removed. Use setRouteAttributeClass instead. packagist.org - Removed
Symfony\Component\Routing\Loader\AttributeClassLoader::setRouteAnnotationClass
The method is removed. Use setRouteAttributeClass instead. packagist.org - Removed
Symfony\Component\Routing\Loader\XmlFileLoader
Symfony\Component\Routing\Loader\XmlFileLoader was removed in symfony/routing v8.0.0 packagist.org - Behavior changed
UrlGenerator
Passing a non-array _query parameter to UrlGenerator now throws InvalidParameterException. Pass an array instead. github.com - Signature changed
Symfony\Component\Routing\CompiledRoute
Was class CompiledRoute; now class CompiledRoute implements \Serializable. packagist.org - 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 - 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 - Signature changed
Symfony\Component\Routing\Route
Was class Route; now class Route implements \Serializable. packagist.org
symfony/routing v8.0.0-BETA1 breaking changes
- Removed
XML configuration files are no longer supported; convert them to another supported format. github.com - Removed
Annotation aliases and getters and setters are removed; use public properties on attributes instead. github.com - Removed
Fluent PHP configuration files are no longer supported. Move that configuration to another supported format. github.com - Removed
PHP config files can no longer access $this or the loader's internal state. github.com - Removed
Symfony 8 requires PHP 8.4 or later. github.com - Removed
AttributeClassLoader property and setter
The deprecated AttributeClassLoader property and its setter have been removed. github.com - Removed
Symfony\Component\Routing\Attribute\Route::getEnv
The deprecated getEnv method has been removed. packagist.org - Removed
Symfony\Component\Routing\Attribute\Route::setEnv
The deprecated setEnv method has been removed. packagist.org - Behavior changed
Return types are enforced on all components, so code overriding methods with incompatible return types may break. github.com - Behavior changed
_query
Passing a non-array _query parameter now throws an exception instead of being accepted. github.com
symfony/routing v7.0.0 breaking changes
- Removed
Symfony\Component\Routing\Loader\AnnotationClassLoader
Symfony\Component\Routing\Loader\AnnotationClassLoader was removed in symfony/routing v7.0.0 packagist.org - Removed
Symfony\Component\Routing\Loader\AnnotationDirectoryLoader
Symfony\Component\Routing\Loader\AnnotationDirectoryLoader was removed in symfony/routing v7.0.0 packagist.org - Removed
Symfony\Component\Routing\Loader\AnnotationFileLoader
Symfony\Component\Routing\Loader\AnnotationFileLoader was removed in symfony/routing v7.0.0 packagist.org - Removed
Symfony\Component\Routing\Loader\AttributeClassLoader::$env
Symfony\Component\Routing\Loader\AttributeClassLoader::$env was removed in symfony/routing v7.0.0 packagist.org - Removed
Symfony\Component\Routing\Loader\AttributeClassLoader::$reader
Symfony\Component\Routing\Loader\AttributeClassLoader::$reader was removed in symfony/routing v7.0.0 packagist.org - 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 - 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 - 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 - 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 - Removed
Symfony\Component\Routing\RouteCollection::getPriority
Symfony\Component\Routing\RouteCollection::getPriority was removed in symfony/routing v7.0.0 packagist.org
And 104 more in this version. Sign up to see every change
symfony/routing v7.0.0-BETA1 breaking changes
- Removed
The package now requires PHP 8.2 or later. Upgrade PHP before upgrading this package. github.com - Removed
Doctrine annotation support for routing is removed. Use PHP attributes for route definitions. github.com - Removed
Code paths that were deprecated earlier are removed in this major release. Stop using them. github.com - Removed
BC layers added for new methods and parameters are removed. Code relying on those compatibility paths must be updated. github.com - Signature changed
Magic methods gained return types. Overrides must declare compatible return types. github.com - Signature changed
Methods now declare native return types. Subclasses overriding these methods must add matching return types. github.com - Signature changed
Return types are now native declarations, which may affect classes that extend or override these methods. github.com - Signature changed
Public and protected properties gained type declarations. Subclasses redeclaring them must match the types. github.com
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.