public static function addPersistence($persistenceId, array $persistenceConf)
    {
        $manager = self::getDefaultManager();
        $configs = $manager->getOption(self::OPTION_PERSISTENCES);
        $configs[$persistenceId] = $persistenceConf;
        $manager->setOption(self::OPTION_PERSISTENCES, $configs);
        
        $manager->getServiceManager()->register(self::SERVICE_ID, $manager);
    }
public static function addPersistence($persistenceId, array $persistenceConf)
    {
        $manager = self::getDefaultManager();
        $configs = $manager->getOption(self::OPTION_PERSISTENCES);
        $configs[$persistenceId] = $persistenceConf;
        $manager->setOption(self::OPTION_PERSISTENCES, $configs);
        
        $manager->getServiceManager()->register(self::SERVICE_ID, $manager);
    }
public static function addPersistence ( $ persistenceId , array $ persistenceConf ) { $ manager = self :: getDefaultManager ( ) ; $ configs = $ manager -> getOption ( self :: OPTION_PERSISTENCES ) ; $ configs [ $ persistenceId ] = $ persistenceConf ; $ manager -> setOption ( self :: OPTION_PERSISTENCES , $ configs ) ; $ manager -> getServiceManager ( ) -> register ( self :: SERVICE_ID , $ manager ) ; }
Add a new persistence to the system

@param string $persistenceId
@param array $persistenceConf
Add a new persistence to the system