Skip to content

Commit 9201b9b

Browse files
committed
fixed regexp for detecting the Bundles namespace
1 parent 9cfc9a1 commit 9201b9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/config/default.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
$kernelRootDir = $container->getParameter('kernel.root_dir');
44
$bundleName = null;
55

6-
if (preg_match('&/([a-zA-Z]*?)Bundle&', $kernelRootDir, $matches)) {
6+
if (preg_match('&/([a-zA-Z]+?)Bundle&', $kernelRootDir, $matches)) {
77
$bundleName = $matches[1].'Bundle';
88
$bundleFQN = 'Symfony\\Cmf\\Bundle\\'.$matches[1].'Bundle';
99
$container->setParameter('cmf_testing.bundle_name', $bundleName);

0 commit comments

Comments
 (0)