Core/src/Batch/BatchRunner.php
public function loadConfig()
    {
        $result = $this->configStorage->lock();
        if ($result === false) {
            throw new \RuntimeException('Failed to lock the configStorage');
        }
        try {
            $result = $this->configStorage->load();
        } catch (\RuntimeException $e) {
            $this->configStorage->clear();
            throw $e;
        } finally {
            $this->configStorage->unlock();
        }

        $this->config = $result;
        return true;
    }
public function loadConfig()
    {
        $result = $this->configStorage->lock();
        if ($result === false) {
            throw new \RuntimeException('Failed to lock the configStorage');
        }
        try {
            $result = $this->configStorage->load();
        } catch (\RuntimeException $e) {
            $this->configStorage->clear();
            throw $e;
        } finally {
            $this->configStorage->unlock();
        }

        $this->config = $result;
        return true;
    }
public function loadConfig ( ) { $ result = $ this -> configStorage -> lock ( ) ; if ( $ result === false ) { throw new \ RuntimeException ( 'Failed to lock the configStorage' ) ; } try { $ result = $ this -> configStorage -> load ( ) ; } catch ( \ RuntimeException $ e ) { $ this -> configStorage -> clear ( ) ; throw $ e ; } finally { $ this -> configStorage -> unlock ( ) ; } $ this -> config = $ result ; return true ; }
Load the config from the storage.

@return bool true on success
@throws \RuntimeException when it fails to load the config.
Load the config from the storage .