Resolve "Menu annotation for controller" #1071

Merged
jankstudio merged 13 commits from 222-menu-annotation-for-controller into master 2019-06-08 07:24:18 +00:00
Showing only changes of commit 841011d3d0 - Show all commits

View file

@ -2,14 +2,16 @@
namespace App\Controller; namespace App\Controller;
use App\Ramcar\BaseController; use Catalyst\MenuBundle\Annotation\Menu;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
class HomeController extends BaseController class HomeController extends Controller
{ {
/**
* @Menu(selected="home")
*/
public function index() public function index()
{ {
$params = $this->initParameters('home'); return $this->render('home.html.twig');
return $this->render('home.html.twig', $params);
} }
} }