src/Sulu/Bundle/CustomUrlBundle/Controller/CustomUrlController.php
public function putAction($webspace, $id, Request $request)
    {
        $manager = $this->get('sulu_custom_urls.manager');

        $document = $manager->save($id, $request->request->all());
        $this->get('sulu_document_manager.document_manager')->flush();

        $context = new Context();
        $context->setGroups(['defaultCustomUrl', 'fullRoute']);

        return $this->handleView($this->view($document)->setContext($context));
    }
public function putAction($webspace, $id, Request $request)
    {
        $manager = $this->get('sulu_custom_urls.manager');

        $document = $manager->save($id, $request->request->all());
        $this->get('sulu_document_manager.document_manager')->flush();

        $context = new Context();
        $context->setGroups(['defaultCustomUrl', 'fullRoute']);

        return $this->handleView($this->view($document)->setContext($context));
    }
public function putAction ( $ webspace , $ id , Request $ request ) { $ manager = $ this -> get ( 'sulu_custom_urls.manager' ) ; $ document = $ manager -> save ( $ id , $ request -> request -> all ( ) ) ; $ this -> get ( 'sulu_document_manager.document_manager' ) -> flush ( ) ; $ context = new Context ( ) ; $ context -> setGroups ( [ 'defaultCustomUrl' , 'fullRoute' ] ) ; return $ this -> handleView ( $ this -> view ( $ document ) -> setContext ( $ context ) ) ; }
Update an existing custom-url object identified by uuid.

@param string $webspace
@param string $id
@param Request $request

@return Response
Update an existing custom - url object identified by uuid .