Skip to content

Instantly share code, notes, and snippets.

View Gregoire-M's full-sized avatar

Grégoire Marchal Gregoire-M

View GitHub Profile
@Gregoire-M
Gregoire-M / Builder.php
Last active March 30, 2019 20:23 — forked from mrflory/Builder.php
Modified menu template to handle submenus
<?php
namespace Linkofy\CommonBundle\Menu;
use Knp\Menu\FactoryInterface;
use Symfony\Component\DependencyInjection\ContainerAware;
class Builder extends ContainerAware
{
public function mainMenu(FactoryInterface $factory, array $options)