public function connect(): AdapterInterface
    {
        return new Local(
            $this->resolvedOptions['path'],
            $this->resolvedOptions['write_flags'],
            $this->resolvedOptions['link_handling'],
            $this->resolvedOptions['permissions']
        );
    }
public function connect(): AdapterInterface
    {
        return new Local(
            $this->resolvedOptions['path'],
            $this->resolvedOptions['write_flags'],
            $this->resolvedOptions['link_handling'],
            $this->resolvedOptions['permissions']
        );
    }
public function connect ( ) : AdapterInterface { return new Local ( $ this -> resolvedOptions [ 'path' ] , $ this -> resolvedOptions [ 'write_flags' ] , $ this -> resolvedOptions [ 'link_handling' ] , $ this -> resolvedOptions [ 'permissions' ] ) ; }
Establish a connection.

@throws \Viserio\Component\Contract\OptionsResolver\Exception\InvalidArgumentException On wrong configuration

@return \League\Flysystem\Adapter\Local
Establish a connection .