public function putAction(Request $request, $webspace, $id)
    {
        $data = $request->request->all();
        $data['content'] = $this->buildContent($data);

        $entity = $this->get('sulu_website.analytics.manager')->update($id, $data);
        $this->get('doctrine.orm.entity_manager')->flush();
        $this->get('sulu_website.http_cache.clearer')->clear();

        return $this->handleView($this->view($entity, 200));
    }
public function putAction(Request $request, $webspace, $id)
    {
        $data = $request->request->all();
        $data['content'] = $this->buildContent($data);

        $entity = $this->get('sulu_website.analytics.manager')->update($id, $data);
        $this->get('doctrine.orm.entity_manager')->flush();
        $this->get('sulu_website.http_cache.clearer')->clear();

        return $this->handleView($this->view($entity, 200));
    }
public function putAction ( Request $ request , $ webspace , $ id ) { $ data = $ request -> request -> all ( ) ; $ data [ 'content' ] = $ this -> buildContent ( $ data ) ; $ entity = $ this -> get ( 'sulu_website.analytics.manager' ) -> update ( $ id , $ data ) ; $ this -> get ( 'doctrine.orm.entity_manager' ) -> flush ( ) ; $ this -> get ( 'sulu_website.http_cache.clearer' ) -> clear ( ) ; return $ this -> handleView ( $ this -> view ( $ entity , 200 ) ) ; }
Updates analytics with given id.

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

@return Response
Updates analytics with given id .