Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 86631a9

Browse filesBrowse files
committed
[FrameworkBundle] fixed template loaders in configuration
1 parent 7cb42d2 commit 86631a9
Copy full SHA for 86631a9

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,10 +309,10 @@ private function registerTemplatingConfiguration(array $config, ContainerBuilder
309309
$container->setParameter('templating.assets.base_urls', $config['assets_base_urls']);
310310
}
311311

312-
if (isset($config['loaders'])) {
312+
if (isset($config['loaders']) && $config['loaders']) {
313313
$loaders = array_map(function($loader) { return new Reference($loader); }, $config['loaders']);
314314

315-
// Use a deligation unless only a single loader was registered
315+
// Use a delegation unless only a single loader was registered
316316
if (1 === count($loaders)) {
317317
$container->setAlias('templating.loader', (string) reset($loaders));
318318
} else {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.