src/ServerFactory.php
public function getCache()
    {
        if (!isset($this->config['cache'])) {
            throw new InvalidArgumentException('A "cache" file system must be set.');
        }

        if (is_string($this->config['cache'])) {
            return new Filesystem(
                new Local($this->config['cache'])
            );
        }

        return $this->config['cache'];
    }
public function getCache()
    {
        if (!isset($this->config['cache'])) {
            throw new InvalidArgumentException('A "cache" file system must be set.');
        }

        if (is_string($this->config['cache'])) {
            return new Filesystem(
                new Local($this->config['cache'])
            );
        }

        return $this->config['cache'];
    }
public function getCache ( ) { if ( ! isset ( $ this -> config [ 'cache' ] ) ) { throw new InvalidArgumentException ( 'A "cache" file system must be set.' ) ; } if ( is_string ( $ this -> config [ 'cache' ] ) ) { return new Filesystem ( new Local ( $ this -> config [ 'cache' ] ) ) ; } return $ this -> config [ 'cache' ] ; }
Get cache file system.
@return FilesystemInterface Cache file system.
Get cache file system .