private function doPersist(Config $config, array $config_to_persist)
    {
        foreach ($this->persistors as $persistor) {
            if (true === $persistor->persist($config, $config_to_persist)) {
                $this->application->getContainer()->get('container.builder')->removeContainerDump();
                break;
            }
        }
    }
private function doPersist(Config $config, array $config_to_persist)
    {
        foreach ($this->persistors as $persistor) {
            if (true === $persistor->persist($config, $config_to_persist)) {
                $this->application->getContainer()->get('container.builder')->removeContainerDump();
                break;
            }
        }
    }
private function doPersist ( Config $ config , array $ config_to_persist ) { foreach ( $ this -> persistors as $ persistor ) { if ( true === $ persistor -> persist ( $ config , $ config_to_persist ) ) { $ this -> application -> getContainer ( ) -> get ( 'container.builder' ) -> removeContainerDump ( ) ; break ; } } }
Tries to persist config by calling every declared persistors; it will stop on first success.

@param Config $config            the concern this persist action concern
@param array  $config_to_persist settings to persist for provided config
Tries to persist config by calling every declared persistors ; it will stop on first success .