I had created the following test code.
Code: Select all
$container = new \ScientiaMobile\WURFL\Container\Container([
'wurfl_snapshot_url' => __DIR__ . '/../wurfl/wurfl.zip',
'wurfl_storage_path' => __DIR__ . '/../wurfl/storage',
'wurfl_capability_filter' => [
'advertised_browser',
'advertised_browser_version',
'advertised_device_os',
'advertised_device_os_version',
'cookie_support',
'form_factor',
'device_os',
'device_os_version',
'is_tablet',
'is_wireless_device',
'pointing_method',
'preferred_markup',
'resolution_height',
'resolution_width',
'ux_full_desktop',
'xhtml_support_level',
'is_smarttv',
'can_assign_phone_number',
'brand_name',
'model_name',
'marketing_name',
'mobile_browser_version'
]
]);
$wurfl_engine = new \ScientiaMobile\WURFL\WURFLEngine($container);
I had print out the value of
__DIR__ . '/../wurfl/wurfl.zip'
and
__DIR__ . '/../wurfl/storage'
They are pointing to a valid zip file and valid directory.
I was wondering, why I am still getting
Code: Select all
The WURFL repository has not been loaded. Please run the "wurfl-updater" script.