Skip to content

Commit 2ddbd43

Browse files
committed
[FrameworkBundle] removed the Templating component dependency on FrameworkBundle
1 parent 17580bb commit 2ddbd43

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ CHANGELOG
44
3.2.0
55
-----
66

7+
* Removed `symfony/templating` from the list of required dependencies in `composer.json`
78
* Removed `symfony/asset` from the list of required dependencies in `composer.json`
89
* The `Resources/public/images/*` files have been removed.
910
* The `Resources/public/css/*.css` files have been removed (they are now inlined in TwigBundle).

DependencyInjection/FrameworkExtension.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@ public function load(array $configs, ContainerBuilder $container)
142142
}
143143

144144
if ($this->isConfigEnabled($container, $config['templating'])) {
145+
if (!class_exists('Symfony\Component\Templating\PhpEngine')) {
146+
throw new LogicException('Templating support cannot be enabled as the Templating component is not installed.');
147+
}
148+
145149
$this->registerTemplatingConfiguration($config['templating'], $container, $loader);
146150
}
147151

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
"symfony/security-core": "~3.2",
3232
"symfony/security-csrf": "~2.8|~3.0",
3333
"symfony/stopwatch": "~2.8|~3.0",
34-
"symfony/templating": "~2.8|~3.0",
3534
"symfony/translation": "~2.8|~3.0",
3635
"doctrine/cache": "~1.0",
3736
"doctrine/annotations": "~1.0"
@@ -48,6 +47,7 @@
4847
"symfony/expression-language": "~2.8|~3.0",
4948
"symfony/process": "~2.8|~3.0",
5049
"symfony/serializer": "~2.8|~3.0",
50+
"symfony/templating": "~2.8|~3.0",
5151
"symfony/validator": "~3.2",
5252
"symfony/yaml": "~3.2",
5353
"symfony/property-info": "~2.8|~3.0",

0 commit comments

Comments
 (0)