public function setPublicFilesystem(Filesystem $filesystem)
    {
        if (!$filesystem->getAdapter() instanceof PublicAdapter) {
            throw new InvalidArgumentException("Configured adapter must implement PublicAdapter");
        }
        $this->publicFilesystem = $filesystem;
        return $this;
    }
public function setPublicFilesystem(Filesystem $filesystem)
    {
        if (!$filesystem->getAdapter() instanceof PublicAdapter) {
            throw new InvalidArgumentException("Configured adapter must implement PublicAdapter");
        }
        $this->publicFilesystem = $filesystem;
        return $this;
    }
public function setPublicFilesystem ( Filesystem $ filesystem ) { if ( ! $ filesystem -> getAdapter ( ) instanceof PublicAdapter ) { throw new InvalidArgumentException ( "Configured adapter must implement PublicAdapter" ) ; } $ this -> publicFilesystem = $ filesystem ; return $ this ; }
Assign new flysystem backend

@param Filesystem $filesystem
@throws InvalidArgumentException
@return $this
Assign new flysystem backend