Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jan 4th, 2013  |  syntax: None  |  size: 0.62 KB  |  views: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. }
clone this paste RAW Paste Data