Permalink
Browse files

Update due to KnpMenuBundle changes

  • Loading branch information...
1 parent f247677 commit 4fb3a383ebe796cd4e1bec5f27a6dacb1bdda2f7 @auss auss committed Feb 22, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 Menu/DefaultMenuBuilder.php
View
4 Menu/DefaultMenuBuilder.php
@@ -24,12 +24,10 @@ public function __construct(FactoryInterface $factory)
*/
public function createAdminMenu(Request $request)
{
- $menu = $this->factory->createItem('root');
+ $menu = $this->factory->createItem('root', array('childrenAttributes' => array('id' => 'main_navigation', 'class'=>'menu') ) );
$menu->setCurrentUri($request->getRequestUri());
- $menu->setAttributes(array('id' => 'main_navigation', 'class'=>'menu'));
-
$help = $menu->addChild('Overwrite this menu', array('uri' => '#'));
$help->setLinkAttributes(array('class'=>'sub main'));

0 comments on commit 4fb3a38

Please sign in to comment.