private function validatePersisters(array $persisters)
    {
        foreach ($persisters as $name => $config) {
            $this->validateTypeAndService($config, sprintf('as3_modlr.persisters.%s', $name));
            switch ($config['type']) {
                case 'mongodb':
                    $this->validateLibClassExists('Persister\MongoDb\Persister', sprintf('as3_modlr.persisters.%s.type', $name));
                    $this->validatePersisterMongoDb($config);
                    break;
                default:
                    break;
            }
        }
    }
private function validatePersisters(array $persisters)
    {
        foreach ($persisters as $name => $config) {
            $this->validateTypeAndService($config, sprintf('as3_modlr.persisters.%s', $name));
            switch ($config['type']) {
                case 'mongodb':
                    $this->validateLibClassExists('Persister\MongoDb\Persister', sprintf('as3_modlr.persisters.%s.type', $name));
                    $this->validatePersisterMongoDb($config);
                    break;
                default:
                    break;
            }
        }
    }
private function validatePersisters ( array $ persisters ) { foreach ( $ persisters as $ name => $ config ) { $ this -> validateTypeAndService ( $ config , sprintf ( 'as3_modlr.persisters.%s' , $ name ) ) ; switch ( $ config [ 'type' ] ) { case 'mongodb' : $ this -> validateLibClassExists ( 'Persister\MongoDb\Persister' , sprintf ( 'as3_modlr.persisters.%s.type' , $ name ) ) ; $ this -> validatePersisterMongoDb ( $ config ) ; break ; default : break ; } } }
Validates the persisters config.

@param   array   $persisters
@return  self
@throws  InvalidConfigurationException
Validates the persisters config .