Skip to content

Instantly share code, notes, and snippets.

@Invis1ble
Invis1ble / MenuBuilder.php
Last active March 3, 2020 10:04 — forked from nateevans/MenuBuilder.php
KNP Menu Bundle with Bootstrap 3 and Font Awesome 4 (+ fixed several bugs)
<?php
namespace Acme\HelloBundle\Menu;
use Knp\Menu\FactoryInterface;
use Symfony\Component\DependencyInjection\ContainerAware;
class MenuBuilder extends ContainerAware
{
public function mainMenu(FactoryInterface $factory, array $options)