AssetManager\Service\CollectionResolverServiceFactory::__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 = $container->get('config');
        $collections = array();
        if (isset($config['asset_manager']['resolver_configs']['collections'])) {
            $collections = $config['asset_manager']['resolver_configs']['collections'];
        }
        $collectionResolver = new CollectionResolver($collections);
        return $collectionResolver;
    }
CollectionResolverServiceFactory