Unable to properly install SonataBluePrintBundle

40 views Asked by At

I couldn't install SonataBluePrintBundle, I used:

$ git submodule add https://github.com/sonata-project/BluePrintBundle.git

(with different file destination:example: src/Bundle/BluePrintBundle) but when i try to delete cache (or do anything else) i get this error:

  PHP Fatal Error: src/Bundle/BluePrintBundle/SonataBluePrintBundle not found in Appkernel.php

but it's already added here is the AppKernel file:

public function registerBundles()
{
    $bundles = array(
//....
        new Knp\Bundle\MenuBundle\KnpMenuBundle(),
        new Bundle\BluePrintBundle\SonataBluePrintBundle(),
    );
//...

I tried more than one to change directory &/or path in AppKernel, always same error.

1

There are 1 answers

3
Tib On

I think your git url is bad, according to the SonataBluePrint repository, the url is https://github.com/sonata-project/SonataBluePrintBundle.git

Try:

git submodule add https://github.com/sonata-project/SonataBluePrintBundle.git

Instead of

git submodule add https://github.com/sonata-project/BluePrintBundle.git