Sfoglia il codice sorgente

merged branch elliot/issue-1768-expected-alias (PR #1807)

Commits
-------

d664f5f Changed the wording of the exception thrown when Bundle::getAlias() returns something different to the Container::underscore version, fixes #1768

Discussion
----------

Changed exception wording

Changed the wording of the exception thrown when Bundle::getAlias() returns something different to the Container::underscore version, fixes #1768
Fabien Potencier 14 anni fa
parent
commit
fe5ac6aa6e
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/Symfony/Component/HttpKernel/Bundle/Bundle.php

+ 1 - 1
src/Symfony/Component/HttpKernel/Bundle/Bundle.php

@@ -81,7 +81,7 @@ abstract class Bundle extends ContainerAware implements BundleInterface
                     throw new \LogicException(sprintf(
                         'The extension alias for the default extension of a '.
                         'bundle must be the underscored version of the '.
-                        'bundle name ("%s" vs "%s")',
+                        'bundle name ("%s" instead of "%s")',
                         $expectedAlias, $extension->getAlias()
                     ));
                 }