protected function createMigratingDriver(array $config): StoreContract
    {
        if (! isset($config['current'], $config['write_only'])) {
            throw new RuntimeException('The MigratingSessionHandler needs a current and write only handler.');
        }

        $currentHandler   = $this->getDriver($config['current']);
        $writeOnlyHandler = $this->getDriver($config['write_only']);

        return $this->buildSession(
            new MigratingSessionHandler($currentHandler->getHandler(), $writeOnlyHandler->getHandler())
        );
    }
protected function createMigratingDriver(array $config): StoreContract
    {
        if (! isset($config['current'], $config['write_only'])) {
            throw new RuntimeException('The MigratingSessionHandler needs a current and write only handler.');
        }

        $currentHandler   = $this->getDriver($config['current']);
        $writeOnlyHandler = $this->getDriver($config['write_only']);

        return $this->buildSession(
            new MigratingSessionHandler($currentHandler->getHandler(), $writeOnlyHandler->getHandler())
        );
    }
protected function createMigratingDriver ( array $ config ) : StoreContract { if ( ! isset ( $ config [ 'current' ] , $ config [ 'write_only' ] ) ) { throw new RuntimeException ( 'The MigratingSessionHandler needs a current and write only handler.' ) ; } $ currentHandler = $ this -> getDriver ( $ config [ 'current' ] ) ; $ writeOnlyHandler = $ this -> getDriver ( $ config [ 'write_only' ] ) ; return $ this -> buildSession ( new MigratingSessionHandler ( $ currentHandler -> getHandler ( ) , $ writeOnlyHandler -> getHandler ( ) ) ) ; }
Create an instance of the Migrating session driver.

@param array $config

@throws \Viserio\Component\Contract\Session\Exception\RuntimeException

@return \Viserio\Component\Contract\Session\Store
Create an instance of the Migrating session driver .