Skip to content

Commit 4fb77c7

Browse files
committed
Made the exception message nicer
1 parent 38f4dee commit 4fb77c7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Bundle/Bundle.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,7 @@ public function getContainerExtension()
8282
$expectedAlias = Container::underscore($basename);
8383
if ($expectedAlias != $extension->getAlias()) {
8484
throw new \LogicException(sprintf(
85-
'The extension alias for the default extension of a '.
86-
'bundle must be the underscored version of the '.
87-
'bundle name ("%s" instead of "%s")',
85+
'Users will expect the alias of the default extension of a bundle to be the underscored version of the bundle name ("%s"). You can override "Bundle::getContainerExtension()" if you want to use "%s" or another alias.',
8886
$expectedAlias, $extension->getAlias()
8987
));
9088
}

0 commit comments

Comments
 (0)