diff --git a/UPGRADE-3.2.md b/UPGRADE-3.2.md index 7b1189b41c..59691a157c 100644 --- a/UPGRADE-3.2.md +++ b/UPGRADE-3.2.md @@ -4,6 +4,9 @@ UPGRADE FROM 3.1 to 3.2 FrameworkBundle --------------- + * The `symfony/templating` dependency has been removed; require it via `composer + require symfony/templating` if you depend on it and don't already depend on + `symfony/symfony` * The `symfony/translation` dependency has been removed; require it via `composer require symfony/translation` if you depend on it and don't already depend on `symfony/symfony` diff --git a/src/Symfony/Bundle/FrameworkBundle/CHANGELOG.md b/src/Symfony/Bundle/FrameworkBundle/CHANGELOG.md index 3e47378a46..1bb49025e5 100644 --- a/src/Symfony/Bundle/FrameworkBundle/CHANGELOG.md +++ b/src/Symfony/Bundle/FrameworkBundle/CHANGELOG.md @@ -4,6 +4,7 @@ CHANGELOG 3.2.0 ----- + * Removed `symfony/templating` from the list of required dependencies in `composer.json` * Removed `symfony/translation` from the list of required dependencies in `composer.json` * Removed `symfony/asset` from the list of required dependencies in `composer.json` * The `Resources/public/images/*` files have been removed. diff --git a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php index a3a50eed2d..3f76278124 100644 --- a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php +++ b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php @@ -148,6 +148,10 @@ class FrameworkExtension extends Extension } if ($this->isConfigEnabled($container, $config['templating'])) { + if (!class_exists('Symfony\Component\Templating\PhpEngine')) { + throw new LogicException('Templating support cannot be enabled as the Templating component is not installed.'); + } + $this->registerTemplatingConfiguration($config['templating'], $container, $loader); } diff --git a/src/Symfony/Bundle/FrameworkBundle/composer.json b/src/Symfony/Bundle/FrameworkBundle/composer.json index ec8debfaff..8242f51857 100644 --- a/src/Symfony/Bundle/FrameworkBundle/composer.json +++ b/src/Symfony/Bundle/FrameworkBundle/composer.json @@ -31,7 +31,6 @@ "symfony/security-core": "~3.2", "symfony/security-csrf": "~2.8|~3.0", "symfony/stopwatch": "~2.8|~3.0", - "symfony/templating": "~2.8|~3.0", "doctrine/cache": "~1.0", "doctrine/annotations": "~1.0" }, @@ -48,6 +47,7 @@ "symfony/process": "~2.8|~3.0", "symfony/serializer": "~2.8|~3.0", "symfony/translation": "~2.8|~3.0", + "symfony/templating": "~2.8|~3.0", "symfony/validator": "~3.2", "symfony/yaml": "~3.2", "symfony/property-info": "~2.8|~3.0",