src/Factory/DbSettingsMapperFactory.php
public function createService(ServiceLocatorInterface $serviceLocator)
    {
        $options = $serviceLocator->get('HtSettingsModule\Options\ModuleOptions');
        $mapper = new DbSettingsMapper();
        $mapper->setDbAdapter($serviceLocator->get('HtSettingsModule\DbAdapter'));
        $entityClass = $options->getParameterEntityClass();
        $mapper->setEntityPrototype(new $entityClass);
        $mapper->setTableName($options->getSettingsTable());

        return $mapper;
    }
public function createService(ServiceLocatorInterface $serviceLocator)
    {
        $options = $serviceLocator->get('HtSettingsModule\Options\ModuleOptions');
        $mapper = new DbSettingsMapper();
        $mapper->setDbAdapter($serviceLocator->get('HtSettingsModule\DbAdapter'));
        $entityClass = $options->getParameterEntityClass();
        $mapper->setEntityPrototype(new $entityClass);
        $mapper->setTableName($options->getSettingsTable());

        return $mapper;
    }
public function createService ( ServiceLocatorInterface $ serviceLocator ) { $ options = $ serviceLocator -> get ( 'HtSettingsModule\Options\ModuleOptions' ) ; $ mapper = new DbSettingsMapper ( ) ; $ mapper -> setDbAdapter ( $ serviceLocator -> get ( 'HtSettingsModule\DbAdapter' ) ) ; $ entityClass = $ options -> getParameterEntityClass ( ) ; $ mapper -> setEntityPrototype ( new $ entityClass ) ; $ mapper -> setTableName ( $ options -> getSettingsTable ( ) ) ; return $ mapper ; }
Gets settings mapper

@param  ServiceLocatorInterface $serviceLocator
@return DbSettingsMapper
Gets settings mapper