AssetManager\Service\MapResolverServiceFactory::__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');
        $map = array();
        if (isset($config['asset_manager']['resolver_configs']['map'])) {
            $map = $config['asset_manager']['resolver_configs']['map'];
        }
        $patchStackResolver = new MapResolver($map);
        return $patchStackResolver;
    }
MapResolverServiceFactory