Browse Source

Updated exception message

Hugo Briand 11 years ago
parent
commit
0d8380af74
1 changed files with 8 additions and 2 deletions
  1. 8 2
      DependencyInjection/SonataAdminExtension.php

+ 8 - 2
DependencyInjection/SonataAdminExtension.php

@@ -46,8 +46,14 @@ BOOM
 
         if (!isset($bundles['KnpMenuBundle'])) {
             throw new \RuntimeException(<<<BOOM
-Boom! you are living on the edge ;) The AdminBundle requires the KnpMenuBundle!
-Please add either ``"knplabs/knp-menu-bundle": "~1.1",`` if you want the stable version or ``"knplabs/knp-menu-bundle": "~2.0@dev"`` and ``"knplabs/knp-menu": "~2.0@dev",`` into your composer.json file if you want the MopaBootstrapBundle-compatible version and add the KnpMenuBundle into the AppKernel');
+The AdminBundle requires the KnpMenuBundle, but you need to choose your version (and choose wisely, fellow padawan!).
+Please add either:
+``"knplabs/knp-menu-bundle": "~1.1"``
+if you want the stable version or:
+ `"knplabs/knp-menu-bundle": "~2.0@dev",
+"knplabs/knp-menu": "~2.0@dev"``
+into your composer.json file if you want the MopaBootstrapBundle-compatible version and add the KnpMenuBundle into the AppKernel.
+Follow the KnpMenuBundle install documentation ,to be sure you're not forgetting anything!');
 BOOM
             );
         }