As recommended, a MenuBunble installation, as base to Admin Bundle installation, in the directory src/Knplabs/Bundle/MenuBundle causes errors.
The first one I noted is on app/console command that finish execution with an error:
"[Exception] The autoloader expected class "Knplabs\Bundle\MenuBundle\KnplabsMenuBundle" to be defined in file "/app/../src/Knplabs/Bundle/MenuBundle/KnplabsMenuBundle.php". You probably have a typo in the namespace or the class name."
( is my project root directory)
Then, if you made all configurations recommended, the bundle does not work.
I verify that:
Installing Menu Bundle in src/Knplabs/MenuBundle
Changing the line app/AppKernel.php wich loads it from
"new Knplabs\Bundle\MenuBundle\KnplabsMenuBundle(),"
to
"new Knplabs\MenuBundle\KnplabsMenuBundle(),"
Changing the lines (31 and 32) of src/Sonata/AdminBundle/Admin/Admin.php from
use Knplabs\Bundle\MenuBundle\Menu;
use Knplabs\Bundle\MenuBundle\MenuItem;
to
use Knplabs\MenuBundle\Menu;
use Knplabs\MenuBundle\MenuItem;
make AdminBundle start to work.
I suggest that you make change 3. on AdminBundle code.
As recommended, a MenuBunble installation, as base to Admin Bundle installation, in the directory src/Knplabs/Bundle/MenuBundle causes errors.
The first one I noted is on app/console command that finish execution with an error: "[Exception] The autoloader expected class "Knplabs\Bundle\MenuBundle\KnplabsMenuBundle" to be defined in file "/app/../src/Knplabs/Bundle/MenuBundle/KnplabsMenuBundle.php". You probably have a typo in the namespace or the class name."
( is my project root directory)
Then, if you made all configurations recommended, the bundle does not work.
I verify that:
I suggest that you make change 3. on AdminBundle code.