src/Sulu/Bundle/WebsiteBundle/Controller/AnalyticsController.php
public function cgetAction(Request $request, $webspace)
    {
        $entities = $this->get('sulu_website.analytics.manager')->findAll($webspace);

        $list = new RouteAwareRepresentation(
            new CollectionRepresentation($entities, self::RESULT_KEY),
            'cget_webspace_analytics',
            array_merge($request->request->all(), ['webspace' => $webspace])
        );

        return $this->handleView($this->view($list, 200));
    }
public function cgetAction(Request $request, $webspace)
    {
        $entities = $this->get('sulu_website.analytics.manager')->findAll($webspace);

        $list = new RouteAwareRepresentation(
            new CollectionRepresentation($entities, self::RESULT_KEY),
            'cget_webspace_analytics',
            array_merge($request->request->all(), ['webspace' => $webspace])
        );

        return $this->handleView($this->view($list, 200));
    }
public function cgetAction ( Request $ request , $ webspace ) { $ entities = $ this -> get ( 'sulu_website.analytics.manager' ) -> findAll ( $ webspace ) ; $ list = new RouteAwareRepresentation ( new CollectionRepresentation ( $ entities , self :: RESULT_KEY ) , 'cget_webspace_analytics' , array_merge ( $ request -> request -> all ( ) , [ 'webspace' => $ webspace ] ) ) ; return $ this -> handleView ( $ this -> view ( $ list , 200 ) ) ; }
Returns webspace analytics by webspace key.

@param Request $request
@param string $webspace

@return Response
Returns webspace analytics by webspace key .