SHARE
TWEET

Untitled

a guest Jan 4th, 2013 14 Never
  1. <?php
  2. // ...
  3.  
  4. public function getConfigTreeBuilder()
  5. {
  6.     $treeBuilder = new TreeBuilder();
  7.     $rootNode = $treeBuilder->root('acme_title_case');
  8.     // ...
  9. }
  10.        
  11. InvalidArgumentException: There is no extension able to load the configuration for
  12. "acme_titlecase" (in /Users/me/Sites/MySite/app/config/config.yml).
  13. Looked for namespace "acme_titlecase",
  14. found "framework", "another_namespace", ... , "acme_title_case", ...
  15.        
  16. <?php
  17.  
  18. namespace AcmeTitleCaseBundleDependencyInjection;
  19.  
  20. // ...
  21.  
  22. class AcmeTitleCaseExtension extends Extension
  23. {
  24.     // ...
  25.  
  26.     public function getAlias()
  27.     {
  28.         return 'acme_titlecase';
  29.     }
  30. }
RAW Paste Data
Top