Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for Google Cloud Storage #183

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

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