public function searchPublicationsAction(Request $request)
    {
        $user = $this->getAuthenticatedUser();
        /** @var FeedRepository $feedsRepository */
        $feedsRepository = $this->app['repo.feeds'];
        $coll = $feedsRepository->getAllForUser($this->getAclForUser($user));

        $data = array_map(function ($feed) use ($user) {
            return $this->listPublication($feed, $user);
        }, $coll);

        return Result::create($request, ["feeds" => $data])->createResponse();
    }
public function searchPublicationsAction(Request $request)
    {
        $user = $this->getAuthenticatedUser();
        /** @var FeedRepository $feedsRepository */
        $feedsRepository = $this->app['repo.feeds'];
        $coll = $feedsRepository->getAllForUser($this->getAclForUser($user));

        $data = array_map(function ($feed) use ($user) {
            return $this->listPublication($feed, $user);
        }, $coll);

        return Result::create($request, ["feeds" => $data])->createResponse();
    }
public function searchPublicationsAction ( Request $ request ) { $ user = $ this -> getAuthenticatedUser ( ) ; /** @var FeedRepository $feedsRepository */ $ feedsRepository = $ this -> app [ 'repo.feeds' ] ; $ coll = $ feedsRepository -> getAllForUser ( $ this -> getAclForUser ( $ user ) ) ; $ data = array_map ( function ( $ feed ) use ( $ user ) { return $ this -> listPublication ( $ feed , $ user ) ; } , $ coll ) ; return Result :: create ( $ request , [ "feeds" => $ data ] ) -> createResponse ( ) ; }
List all available feeds

@param  Request $request

@return Response
List all available feeds