symfony/twig-bundle breaking changes
symfony/twig-bundle v8.0.0 (November 27, 2025) is its newest release with breaking changes, 3 of them. The first: Removed Symfony\Bundle\TwigBundle\DependencyInjection\TwigExtension::getNamespace. Every breaking API change we have recorded in symfony/twig-bundle on Packagist: 22 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/twig-bundle v8.0.0 breaking changes
- Removed
Symfony\Bundle\TwigBundle\DependencyInjection\TwigExtension::getNamespace
Symfony\Bundle\TwigBundle\DependencyInjection\TwigExtension::getNamespace was removed in symfony/twig-bundle v8.0.0 packagist.org - Removed
Symfony\Bundle\TwigBundle\DependencyInjection\TwigExtension::getXsdValidationBasePath
Symfony\Bundle\TwigBundle\DependencyInjection\TwigExtension::getXsdValidationBasePath was removed in symfony/twig-bundle v8.0.0 packagist.org - Signature changed
Symfony\Bundle\TwigBundle\CacheWarmer\TemplateCacheWarmer
Was class TemplateCacheWarmer implements CacheWarmerInterface, ServiceSubscriberInterface; now final class TemplateCacheWarmer implements CacheWarmerInterface, ServiceSubscriberInterface. packagist.org
symfony/twig-bundle v8.0.0-BETA1 breaking changes
- Removed
Symfony 8 requires PHP 8.4 or later. Projects on older PHP versions must upgrade PHP before upgrading. github.com - Removed
XML configuration is no longer supported. Configuration files written in XML must be converted to another format such as YAML or PHP. github.com - Removed
base_template_class
The base_template_class configuration option is removed. Configurations that set it must delete it. github.com - Removed
ExtensionInterface.getNamespace
ExtensionInterface no longer provides getNamespace(). Extensions that implement or call it must drop that code. github.com - Removed
ExtensionInterface.getXsdValidationBasePath
ExtensionInterface no longer provides getXsdValidationBasePath(). Extensions that implement or call it must drop that code. github.com
symfony/twig-bundle v7.0.0 breaking changes
- Signature changed
Symfony\Bundle\TwigBundle\CacheWarmer\TemplateCacheWarmer::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\TwigBundle\DependencyInjection\Compiler\ExtensionPass::process
Was public function process(ContainerBuilder $container); now public function process(ContainerBuilder $container): void. packagist.org - Signature changed
Symfony\Bundle\TwigBundle\DependencyInjection\Compiler\RuntimeLoaderPass::process
Was public function process(ContainerBuilder $container); now public function process(ContainerBuilder $container): void. packagist.org - Signature changed
Symfony\Bundle\TwigBundle\DependencyInjection\Compiler\TwigEnvironmentPass::process
Was public function process(ContainerBuilder $container); now public function process(ContainerBuilder $container): void. packagist.org - Signature changed
Symfony\Bundle\TwigBundle\DependencyInjection\Compiler\TwigLoaderPass::process
Was public function process(ContainerBuilder $container); now public function process(ContainerBuilder $container): void. packagist.org - Signature changed
Symfony\Bundle\TwigBundle\DependencyInjection\Configurator\EnvironmentConfigurator::configure
Was public function configure(Environment $environment); now public function configure(Environment $environment): void. packagist.org - Signature changed
Symfony\Bundle\TwigBundle\DependencyInjection\TwigExtension::load
Was public function load(array $configs, ContainerBuilder $container); now public function load(array $configs, ContainerBuilder $container): void. packagist.org - Signature changed
Symfony\Bundle\TwigBundle\TwigBundle::build
Was public function build(ContainerBuilder $container); now public function build(ContainerBuilder $container): void. packagist.org - Signature changed
Symfony\Bundle\TwigBundle\TwigBundle::registerCommands
Was public function registerCommands(Application $application); now public function registerCommands(Application $application): void. packagist.org
symfony/twig-bundle v7.0.0-BETA1 breaking changes
- Removed
Twig 2 is no longer supported, so projects must upgrade to Twig 3 before using this release. github.com - Removed
Code paths that were previously deprecated have been removed, so code relying on them will break. github.com - Removed
The package now requires PHP 8.2 or later, so older PHP versions can no longer run it. github.com - Signature changed
Methods now declare native return types, so overrides with incompatible return types will fail. github.com - Signature changed
WarmableInterface.warmup
Implementations of warmup must accept the new $buildDir argument to keep working. 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.