Loading…

How to get current route name in Symfony?

$requestName = $this->container->get('request');
$currentRoute = $requestName->get('_route');

Suggest An Answer

No suggestions avaliable!

Latest post from Symfony 2 interview questions

Ask Question