src/Kunstmaan/AdminBundle/Helper/Menu/MenuItem.php
public function setRoute($route, array $params = array())
    {
        $this->route = $route;
        $this->routeParams = $params;

        return $this;
    }
public function setRoute($route, array $params = array())
    {
        $this->route = $route;
        $this->routeParams = $params;

        return $this;
    }
public function setRoute ( $ route , array $ params = array ( ) ) { $ this -> route = $ route ; $ this -> routeParams = $ params ; return $ this ; }
Set route and parameters for menu item

@param string $route  The route
@param array  $params The route parameters

@return MenuItem
Set route and parameters for menu item