src/UthandoCommon/Db/Adapter/AdapterServiceFactory.php
public function createService(ServiceLocatorInterface $container)
    {
        $config = $container->get(DbOptions::class);
        return new Adapter($config->toArray());
    }
public function createService(ServiceLocatorInterface $container)
    {
        $config = $container->get(DbOptions::class);
        return new Adapter($config->toArray());
    }
public function createService ( ServiceLocatorInterface $ container ) { $ config = $ container -> get ( DbOptions :: class ) ; return new Adapter ( $ config -> toArray ( ) ) ; }
Create db adapter service

@param ServiceLocatorInterface $container
@return Adapter
Create db adapter service