public function viewMenu($nodeId, $modified, $expiry, $perm)
    {
        $response = new Response();
        if ($this->getParameter('treemenu.http_cache')) {
            $response->setMaxAge($this->getParameter('treemenu.ttl_cache'));
        }

        $result = $this->treeMenuKernel->run();
        if ($result->hasAttribute('lastModified')) {
            $response->setLastModified($result->getAttribute('lastModified'));
        }
        $response->setContent($result->getContent());

        return $response;
    }
public function viewMenu($nodeId, $modified, $expiry, $perm)
    {
        $response = new Response();
        if ($this->getParameter('treemenu.http_cache')) {
            $response->setMaxAge($this->getParameter('treemenu.ttl_cache'));
        }

        $result = $this->treeMenuKernel->run();
        if ($result->hasAttribute('lastModified')) {
            $response->setLastModified($result->getAttribute('lastModified'));
        }
        $response->setContent($result->getContent());

        return $response;
    }
public function viewMenu ( $ nodeId , $ modified , $ expiry , $ perm ) { $ response = new Response ( ) ; if ( $ this -> getParameter ( 'treemenu.http_cache' ) ) { $ response -> setMaxAge ( $ this -> getParameter ( 'treemenu.ttl_cache' ) ) ; } $ result = $ this -> treeMenuKernel -> run ( ) ; if ( $ result -> hasAttribute ( 'lastModified' ) ) { $ response -> setLastModified ( $ result -> getAttribute ( 'lastModified' ) ) ; } $ response -> setContent ( $ result -> getContent ( ) ) ; return $ response ; }
Action rendering the tree menu for admin interface.
Note that parameters are not used at all since the request is entirely forwarded to the legacy kernel.

@param int $nodeId
@param int $modified
@param int $expiry
@param string $perm

@return \Symfony\Component\HttpFoundation\Response
Action rendering the tree menu for admin interface . Note that parameters are not used at all since the request is entirely forwarded to the legacy kernel .