diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/ConfigurationTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/ConfigurationTest.php
index c2455606b9727..827988669fb8d 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/ConfigurationTest.php
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/ConfigurationTest.php
@@ -209,6 +209,7 @@ protected static function getBundleDefaultConfig()
'fragments' => [
'enabled' => false,
'path' => '/_fragment',
+ 'hinclude_default_template' => null,
],
'profiler' => [
'enabled' => false,
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/template_and_fragments.php b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/template_and_fragments.php
new file mode 100644
index 0000000000000..6fd941d9f46c0
--- /dev/null
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/template_and_fragments.php
@@ -0,0 +1,18 @@
+loadFromExtension('framework', [
+ 'templating' => [
+ 'cache' => '/path/to/cache',
+ 'engines' => ['php', 'twig'],
+ 'loader' => ['loader.foo', 'loader.bar'],
+ 'form' => [
+ 'resources' => ['theme1', 'theme2'],
+ ],
+ 'hinclude_default_template' => 'global_hinclude_template',
+ ],
+ 'assets' => null,
+ 'fragments' => [
+ 'enabled' => true,
+ 'hinclude_default_template' => 'global_hinclude_template',
+ ],
+]);
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/xml/template_and_fragments.xml b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/xml/template_and_fragments.xml
new file mode 100644
index 0000000000000..d253e9f5deeed
--- /dev/null
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/xml/template_and_fragments.xml
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
+
+
+ loader.foo
+ loader.bar
+ php
+ twig
+
+ theme1
+ theme2
+
+
+
+
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/yml/template_and_fragments.yml b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/yml/template_and_fragments.yml
new file mode 100644
index 0000000000000..dbf7b697541e0
--- /dev/null
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/yml/template_and_fragments.yml
@@ -0,0 +1,12 @@
+framework:
+ fragments:
+ enabled: true
+ hinclude_default_template: global_hinclude_template
+ templating:
+ engines: [php, twig]
+ loader: [loader.foo, loader.bar]
+ cache: /path/to/cache
+ form:
+ resources: [theme1, theme2]
+ hinclude_default_template: global_hinclude_template
+ assets: ~
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php
index e3f727030ccc8..8ebe5d97513fb 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php
@@ -159,6 +159,14 @@ public function testEsiDisabled()
$this->assertFalse($container->hasDefinition('esi'));
}
+ /**
+ * @expectedException \LogicException
+ */
+ public function testAmbiguousWhenBothTemplatingAndFragments()
+ {
+ $this->createContainerFromFile('template_and_fragments');
+ }
+
public function testSsi()
{
$container = $this->createContainerFromFile('full');
pFad - Phonifier reborn
Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy