Atrauzzi\LaravelDoctrine\CacheProvider\CacheProvider::getCacheProvider PHP Method

getCacheProvider() public static method

public static getCacheProvider ( $config ) : CacheProvider
$config
return Doctrine\Common\Cache\CacheProvider
    public static function getCacheProvider($config)
    {
        if (!static::hasValidParameters($config)) {
            throw new \InvalidArgumentException('Missing one or more required parameters [' . implode(', ', static::$required_configurations) . ']');
        }
        //return static::initialize($config);
        return (new static())->initialize($config);
    }