<?php

/*
 * This file is part of ScientiaMobile WURFL PHP API
 *
 * (c) ScientiaMobile, Inc. http://www.scientiamobile.com
 *
 * This software package is the property of ScientiaMobile Inc. and is licensed commercially according to a contract
 * between the Licensee and ScientiaMobile Inc. (Licensor).
 * If you represent the Licensee, please refer to the licensing agreement which has been signed between the two parties.
 * If you do not represent the Licensee, you are not authorized to use this software in any way.
 */

/**
 * WURFL Dependency Container
 * See the README for further details.
 */

// Basic configuration
$container = new \ScientiaMobile\WURFL\Container\Container();
return $container;

// Advanced configuration
/**
$container = new \ScientiaMobile\WURFL\Container\Container([
    'wurfl_snapshot_url' => 'https://data.scientiamobile.com/xxxxx/wurfl.zip',
    'wurfl_capability_filter' => [
        'device_os',
        'device_os_version',
        //...
    ],
    'wurfl_patches' => [
        '/full/path/to/patch-1.xml',
    ],
]);

// Create the storage adapter
$storage = \ScientiaMobile\WURFL\StorageFactory::createFileStorage('/path/to/storage/folder');

// Set the time to live for cache item
$ttl = CacheAdapterInterface::NEVER; // Default
// Create the cache adapter
$cache = CacheFactory::createApcCache($ttl, $settings);

// Add the storage and cache adapters to the container
$container->setStorageAdapter($storage);
$container->setCacheAdapter($cache);
return $container;
*/
