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

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

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

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

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