wurflFile($c['wurfl']['main-file']) ->wurflPatch($c['wurfl']['patches']) ->persistence($c['persistence']['provider'], $c['persistence']['dir']); } $wurflManagerFactory = new WURFL_WURFLManagerFactory($wurflConfig); $wurflManager = $wurflManagerFactory->create(); break; default: #require_once 'Zend/Http/UserAgent/Features/Exception.php'; throw new Zend_Http_UserAgent_Features_Exception(sprintf( 'Unknown API version "%s"', $config['wurfl_api_version'] )); } $device = $wurflManager->getDeviceForHttpRequest(array_change_key_case($request, CASE_UPPER)); $features = $device->getAllCapabilities(); return $features; } }