title: Symfony - There is no extension able to load the configuration - custom config
body: <p>Helo,</p>
  
  <p>i am trying to load custom config into my AppBundle. Unluckily I am getting:</p>
  
  <blockquote>
    <p>[Symfony\Component\DependencyInjection\Exception\InvalidArgumentException]
    There is no extension able to load the configuration for "app" (in
    /var/www<br>
    /dev.investmentopportunities.pl/src/AppBundle/DependencyInjection/../Resour
    ces/config/general.yml). Looked for namespace "app", found none</p>
  </blockquote>
  
  <p>There are several similar topics relating to this error. I have looked at them but can't find any solution which would resolve this issue.</p>
  
  <p>My configuration file looks like this:</p>
  
  <pre><code>&lt;?php
  namespace AppBundle\DependencyInjection;
  
  use Symfony\Component\Config\Definition\Builder\TreeBuilder;
  use Symfony\Component\Config\Definition\ConfigurationInterface;
  
  class Configuration implements ConfigurationInterface
  {
      public function getConfigTreeBuilder()
      {
          $treeBuilder = new TreeBuilder();
          $rootNode = $treeBuilder-&gt;root('app');
  
           $rootNode
              -&gt;children()
              -&gt;arrayNode('tags')
              -&gt;prototype('array')
                  -&gt;children()
                      -&gt;scalarNode('name')-&gt;isRequired()-&gt;end()
                      -&gt;scalarNode('role')-&gt;isRequired()-&gt;end()
                      -&gt;scalarNode('priority')-&gt;isRequired()-&gt;end()
                      -&gt;scalarNode('label')-&gt;isRequired()-&gt;end()
                  -&gt;end()
              -&gt;end();
  
          return $treeBuilder;
      }
  }
  </code></pre>
  
  <p>and <strong>general.yml:</strong></p>
  
  <pre><code>app:
      tags:
          Accepted:
              name: "Accepted"
              role: "ROLE_ACCEPTTAG"
              priority: "3"
              label: "label label-info"
          Booked:
              name: "Booked"
              role: "ROLE_ACCOUNTANT"
              priority: "3"
              label: "label label-info"
          Finalized:
              name: "Booked"
              role: "ROLE_ACCEPTDOC"
              priority: "1"
              label: "label label-success"
  </code></pre>
  
  <p><strong>AppExtension.php:</strong></p>
  
  <pre><code>&lt;?php
  namespace AppBundle\DependencyInjection;
  
  use Symfony\Component\DependencyInjection\ContainerBuilder;
  use Symfony\Component\Config\FileLocator;
  use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface;
  use Symfony\Component\HttpKernel\DependencyInjection\Extension;
  use Symfony\Component\DependencyInjection\Loader;
  use Symfony\Component\Validator\Tests\Fixtures\Entity;
  
  /**
   * This is the class that loads and manages your bundle configuration
   */
  class AppExtension extends Extension
  {
      /**
       * {@inheritdoc}
       */
      public function load(array $configs, ContainerBuilder $container)
      {
          $configuration = new Configuration();
          $config = $this-&gt;processConfiguration($configuration, $configs);
  
          $container-&gt;setParameter('app', $config['app']);
  
          $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
          $loader-&gt;load('general.yml'); # another file of yours
  
      }
  }
  </code></pre>