Skip to content

Conversation

shcode
Copy link

@shcode shcode commented Aug 1, 2017

Add support for GCS

@antongorodezkiy
Copy link

Thank you for sharing your work @shcode, will try to use it

@antongorodezkiy
Copy link

Had to make few modifications for my case and the special one to avoid the exception

Serialization of 'Closure' is not allowed

I had to explicitly set serializable properties in GCS.php to exclude $filesystem from the serialization:

// NOTE: need to explicitly set serializable properties
        public function __sleep()
        {
            return ['attachedFile'];
        }

        public function __wakeup()
        {
            $this->filesystem = StaplerExtended::getGCSClientInstance($this->attachedFile);
        }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants