private function getClassicCollection(Request $request, $mediaFolder, $start, $count)
    {
        $params = $request->query->all();
        $contentType =  $request->get('contentType', null);

        if (null !== $contentType) {
            try {
                $params['contentType'] = AbstractClassContent::getClassnameByContentType($contentType);
            } catch (InvalidContentTypeException $e) {
                throw new NotFoundHttpException(sprintf('Provided content type (:%s) is invalid.', $params['contentType']));
            }
        }

        return $this->getMediaRepository()->getMedias($mediaFolder, $params, '_modified', 'desc', [
            'start' => $start,
            'limit' => $count,
        ]);
    }
private function getClassicCollection(Request $request, $mediaFolder, $start, $count)
    {
        $params = $request->query->all();
        $contentType =  $request->get('contentType', null);

        if (null !== $contentType) {
            try {
                $params['contentType'] = AbstractClassContent::getClassnameByContentType($contentType);
            } catch (InvalidContentTypeException $e) {
                throw new NotFoundHttpException(sprintf('Provided content type (:%s) is invalid.', $params['contentType']));
            }
        }

        return $this->getMediaRepository()->getMedias($mediaFolder, $params, '_modified', 'desc', [
            'start' => $start,
            'limit' => $count,
        ]);
    }
private function getClassicCollection ( Request $ request , $ mediaFolder , $ start , $ count ) { $ params = $ request -> query -> all ( ) ; $ contentType = $ request -> get ( 'contentType' , null ) ; if ( null !== $ contentType ) { try { $ params [ 'contentType' ] = AbstractClassContent :: getClassnameByContentType ( $ contentType ) ; } catch ( InvalidContentTypeException $ e ) { throw new NotFoundHttpException ( sprintf ( 'Provided content type (:%s) is invalid.' , $ params [ 'contentType' ] ) ) ; } } return $ this -> getMediaRepository ( ) -> getMedias ( $ mediaFolder , $ params , '_modified' , 'desc' , [ 'start' => $ start , 'limit' => $ count , ] ) ; }
Get classic collection.

@param   Request     $request
@param   MediaFolder $mediaFolder
@param   int         $start
@param   int         $count
@return  mixed
Get classic collection .