lib/Base/MongoDB/AdapterServiceFactory.php
/**
     * Create db adapter service
     *
     * @param  ServiceLocatorInterface $serviceLocator
     * @return Adapter
     */
Create db adapter service
@param  ServiceLocatorInterface $serviceLocator
@return Adapter
Create db adapter service @param ServiceLocatorInterface $serviceLocator @return Adapter
public function createService(ServiceLocatorInterface $serviceLocator)
    {
        $config = $serviceLocator->get('Config');
        return new BaseMongoDB($config['mongodb']['db']);
    }
public function createService ( ServiceLocatorInterface $ serviceLocator ) { $ config = $ serviceLocator -> get ( 'Config' ) ; return new BaseMongoDB ( $ config [ 'mongodb' ] [ 'db' ] ) ; }
Create db adapter service
 @param  ServiceLocatorInterface $serviceLocator
 @return Adapter
Create db adapter service @param ServiceLocatorInterface $serviceLocator @return Adapter