src/Leevel/Filesystem/Local.php
public function makeConnect()
    {
        if (empty($this->option['path'])) {
            throw new InvalidArgumentException(
                'The local requires path option.'
            );
        }

        return new AdapterLocal(
            $this->option['path'],
            $this->option['write_flags'],
            $this->option['link_handling'],
            $this->option['permissions']
        );
    }
public function makeConnect()
    {
        if (empty($this->option['path'])) {
            throw new InvalidArgumentException(
                'The local requires path option.'
            );
        }

        return new AdapterLocal(
            $this->option['path'],
            $this->option['write_flags'],
            $this->option['link_handling'],
            $this->option['permissions']
        );
    }
创建连接.

@return \League\Flysystem\AdapterInterface