AssetManager\Service\AssetCacheManagerServiceFactory::__invoke PHP Method

__invoke() public method

public __invoke ( Interop\Container\ContainerInterface $container, $requestedName, array $options = null )
$container Interop\Container\ContainerInterface
$options array
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
    {
        $config = array();
        $globalConfig = $container->get('config');
        if (!empty($globalConfig['asset_manager']['caching'])) {
            $config = $globalConfig['asset_manager']['caching'];
        }
        return new AssetCacheManager($container, $config);
    }
AssetCacheManagerServiceFactory