src/Factory/SettingsProviderFactory.php
public function createService(ServiceLocatorInterface $serviceLocator)
    {
        $options = $serviceLocator->get('HtSettingsModule\Options\ModuleOptions');
        $settingsProvider = new SettingsProvider(
            $options,
            $serviceLocator->get('HtSettingsModule_SettingsMapper'),
            $serviceLocator->get('HtSettingsModule\Service\NamespaceHydratorProvider')
        );
        if ($options->getCacheOptions()->isEnabled()) {
            $settingsProvider->setCacheManager($serviceLocator->get('HtSettingsModule\Service\CacheManager'));
        }

        return $settingsProvider;
    }
public function createService(ServiceLocatorInterface $serviceLocator)
    {
        $options = $serviceLocator->get('HtSettingsModule\Options\ModuleOptions');
        $settingsProvider = new SettingsProvider(
            $options,
            $serviceLocator->get('HtSettingsModule_SettingsMapper'),
            $serviceLocator->get('HtSettingsModule\Service\NamespaceHydratorProvider')
        );
        if ($options->getCacheOptions()->isEnabled()) {
            $settingsProvider->setCacheManager($serviceLocator->get('HtSettingsModule\Service\CacheManager'));
        }

        return $settingsProvider;
    }
public function createService ( ServiceLocatorInterface $ serviceLocator ) { $ options = $ serviceLocator -> get ( 'HtSettingsModule\Options\ModuleOptions' ) ; $ settingsProvider = new SettingsProvider ( $ options , $ serviceLocator -> get ( 'HtSettingsModule_SettingsMapper' ) , $ serviceLocator -> get ( 'HtSettingsModule\Service\NamespaceHydratorProvider' ) ) ; if ( $ options -> getCacheOptions ( ) -> isEnabled ( ) ) { $ settingsProvider -> setCacheManager ( $ serviceLocator -> get ( 'HtSettingsModule\Service\CacheManager' ) ) ; } return $ settingsProvider ; }
Gets settings mapper

@param  ServiceLocatorInterface $serviceLocator
@return SettingsMapper
Gets settings mapper