8000 fix compat · symfony/symfony@58dd974 · GitHub
[go: up one dir, main page]

Skip to content

Commit 58dd974

Browse files
committed
fix compat
1 parent c51080c commit 58dd974

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/TwigBundle/DependencyInjection/TwigExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ private function getBundleTemplatePaths(ContainerBuilder $container, array $conf
188188
}
189189
$container->addResource(new FileExistenceResource($defaultOverrideBundlePath));
190190

191-
if (file_exists($dir = $bundle['dir'].'/templates') || file_exists($dir = $bundle['path'].'/Resources/views')) {
191+
if ((isset($bundle['dir']) && file_exists($dir = $bundle['dir'].'/templates')) || file_exists($dir = $bundle['path'].'/Resources/views')) {
192192
$bundleHierarchy[$name][] = $dir;
193193
}
194194
$container->addResource(new FileExistenceResource($dir));

0 commit comments

Comments
 (0)
0