src/Charcoal/Cache/CacheBuilder.php
private function resolveDriver($driver)
    {
        if ($this->isIterable($driver)) {
            foreach ($driver as $drv) {
                try {
                    return $this->resolveOneDriver($drv);
                } catch (InvalidArgumentException $e) {
                    continue;
                }
            }

            throw new InvalidArgumentException(
                'Drivers cannot be resolved'
            );
        }

        return $this->resolveOneDriver($driver);
    }
private function resolveDriver($driver)
    {
        if ($this->isIterable($driver)) {
            foreach ($driver as $drv) {
                try {
                    return $this->resolveOneDriver($drv);
                } catch (InvalidArgumentException $e) {
                    continue;
                }
            }

            throw new InvalidArgumentException(
                'Drivers cannot be resolved'
            );
        }

        return $this->resolveOneDriver($driver);
    }
private function resolveDriver ( $ driver ) { if ( $ this -> isIterable ( $ driver ) ) { foreach ( $ driver as $ drv ) { try { return $ this -> resolveOneDriver ( $ drv ) ; } catch ( InvalidArgumentException $ e ) { continue ; } } throw new InvalidArgumentException ( 'Drivers cannot be resolved' ) ; } return $ this -> resolveOneDriver ( $ driver ) ; }
Resolve one or many cache drivers, if available.

@param  mixed $driver The name of a registered cache driver,
the class name or instance of a {@see DriverInterface cache driver}.
An array may be used to designate fallback drivers.
@throws InvalidArgumentException When an array of drivers cannot be resolved.
@return DriverInterface
Resolve one or many cache drivers if available .