public function getCurrentRoute() { try { return $this->router->match($this->router->getPathInfo()); } catch (\Exception $e) { return array('_route' => null, '_locale' => $this->getLocale()); } }