Convert HomeController to use Menu annotation instead of base controller #222
This commit is contained in:
parent
fa9bbe8989
commit
841011d3d0
1 changed files with 7 additions and 5 deletions
|
|
@ -2,14 +2,16 @@
|
|||
|
||||
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()
|
||||
{
|
||||
$params = $this->initParameters('home');
|
||||
|
||||
return $this->render('home.html.twig', $params);
|
||||
return $this->render('home.html.twig');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue