There is no extension able to load the configuration for “facebookbundle” symfony2

后端 未结 4 1065
死守一世寂寞
死守一世寂寞 2020-11-30 07:46

I create my own FacebookBundle and

I got this error:

There is no extension able to load the configuration for \"facebookbundle\" (in /facebo

4条回答
  •  余生分开走
    2020-11-30 08:06

    This happens when you forget to start the bundle in app/AppKernel.php :

    getEnvironment(), array ('dev', 'test')))
          {
             $bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
             $bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle();
             $bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
          }
    
          return $bundles;
       }
    
       public function registerContainerConfiguration(LoaderInterface $loader)
       {
          $loader->load(__DIR__ . '/config/config_' . $this->getEnvironment() . '.yml');
       }
    
    }
    

提交回复
热议问题