mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
24 lines
587 B
PHP
24 lines
587 B
PHP
<?php
|
|
|
|
namespace Chill\MainBundle\Controller;
|
|
|
|
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
|
|
|
/**
|
|
* Class MenuController
|
|
*
|
|
* @package Chill\MainBundle\Controller
|
|
*/
|
|
class MenuController extends AbstractController
|
|
{
|
|
public function writeMenuAction($menu, $layout, $activeRouteKey = null, array $args = array() )
|
|
{
|
|
return $this->render($layout, array(
|
|
'menu_composer' => $this->get('chill.main.menu_composer'),
|
|
'menu' => $menu,
|
|
'args' => $args,
|
|
'activeRouteKey' => $activeRouteKey
|
|
));
|
|
}
|
|
}
|