private function buildConfig(Request $request)
    {
        $config = array(
            'mode' => $request->query->get('mode', 'browse'),
        );
        if (null !== $types = $request->query->get('types', array())) {
            // TODO validate types
            $config['types'] = $types;
        }
        return $config;
    }
private function buildConfig(Request $request)
    {
        $config = array(
            'mode' => $request->query->get('mode', 'browse'),
        );
        if (null !== $types = $request->query->get('types', array())) {
            // TODO validate types
            $config['types'] = $types;
        }
        return $config;
    }
private function buildConfig ( Request $ request ) { $ config = array ( 'mode' => $ request -> query -> get ( 'mode' , 'browse' ) , ) ; if ( null !== $ types = $ request -> query -> get ( 'types' , array ( ) ) ) { // TODO validate types $ config [ 'types' ] = $ types ; } return $ config ; }
Builds the browser config.

@param Request $request

@return array
Builds the browser config .