Skip to content

How Can I set Google Client options with this package? #5

Open
@wammy21

Description

@wammy21

I am having a problem with my server, I am running different laravel installs on one machine, but it seems they all want to use /tmp/Google_Client/ and it has now become an issue since the different sites run under different users.

Anyway the fix to what I am encountering is this:
http://stackoverflow.com/questions/17282894/a-client-error-occurred-could-not-create-storage-directory-tmp-google-client

Which is really just a matter of doing this:
$config = new Google_Config();
$config->setClassConfig('Google_Cache_File', array('directory' => '../tmp/cache'));
$client = new Google_Client($config);

Maybe add an option to set it via the config file or the .env?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions