private function loadPersistors()
    {
        if (null !== $config = $this->application->getConfig()) {
            $config_config = $config->getConfigConfig();

            if (!is_array($config_config) || !array_key_exists('persistor', $config_config)) {
                throw new PersistorListNotFoundException();
            }

            $persistPerContext = !isset($config_config['persist_per_context']) || true === $config_config['persist_per_context'];
            $persistPerEnvironment = !isset($config_config['persist_per_environment']) || true === $config_config['persist_per_environment'];

            $persistors = (array) $config_config['persistor'];
            foreach ($persistors as $persistor_classname) {
                $persistor = new $persistor_classname($this->application, $persistPerContext, $persistPerEnvironment);
                if (false === ($persistor instanceof PersistorInterface)) {
                    throw new InvalidArgumentException(
                        get_class($persistor).' must implements BackBee\Config\Persistor\PersistorInterface'
                    );
                }

                $this->persistors[] = $persistor;
            }
        } else {
            throw new BBException('Application\'s Config must be different to null');
        }
    }
private function loadPersistors()
    {
        if (null !== $config = $this->application->getConfig()) {
            $config_config = $config->getConfigConfig();

            if (!is_array($config_config) || !array_key_exists('persistor', $config_config)) {
                throw new PersistorListNotFoundException();
            }

            $persistPerContext = !isset($config_config['persist_per_context']) || true === $config_config['persist_per_context'];
            $persistPerEnvironment = !isset($config_config['persist_per_environment']) || true === $config_config['persist_per_environment'];

            $persistors = (array) $config_config['persistor'];
            foreach ($persistors as $persistor_classname) {
                $persistor = new $persistor_classname($this->application, $persistPerContext, $persistPerEnvironment);
                if (false === ($persistor instanceof PersistorInterface)) {
                    throw new InvalidArgumentException(
                        get_class($persistor).' must implements BackBee\Config\Persistor\PersistorInterface'
                    );
                }

                $this->persistors[] = $persistor;
            }
        } else {
            throw new BBException('Application\'s Config must be different to null');
        }
    }
private function loadPersistors ( ) { if ( null !== $ config = $ this -> application -> getConfig ( ) ) { $ config_config = $ config -> getConfigConfig ( ) ; if ( ! is_array ( $ config_config ) || ! array_key_exists ( 'persistor' , $ config_config ) ) { throw new PersistorListNotFoundException ( ) ; } $ persistPerContext = ! isset ( $ config_config [ 'persist_per_context' ] ) || true === $ config_config [ 'persist_per_context' ] ; $ persistPerEnvironment = ! isset ( $ config_config [ 'persist_per_environment' ] ) || true === $ config_config [ 'persist_per_environment' ] ; $ persistors = ( array ) $ config_config [ 'persistor' ] ; foreach ( $ persistors as $ persistor_classname ) { $ persistor = new $ persistor_classname ( $ this -> application , $ persistPerContext , $ persistPerEnvironment ) ; if ( false === ( $ persistor instanceof PersistorInterface ) ) { throw new InvalidArgumentException ( get_class ( $ persistor ) . ' must implements BackBee\Config\Persistor\PersistorInterface' ) ; } $ this -> persistors [ ] = $ persistor ; } } else { throw new BBException ( 'Application\'s Config must be different to null' ) ; } }
Loads every declared persistors in application config.yml, config section.

@throws PersistorListNotFoundException occurs if there is no persistor list in config.yml, section: config
it also occurs if config section does not exist in application config.yml
@throws InvalidArgumentException       raises if one of declared persistors does not implement PersistorInterface
Loads every declared persistors in application config . yml config section .