Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Enable multiple gcs config #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/GoogleCloudStorageServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ class GoogleCloudStorageServiceProvider extends ServiceProvider
{
/**
* Perform post-registration booting of services.
*
* @param string $config
*/
public function boot()
public function boot(string $config = '')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This typehint is not compatible with PHP < 7

{
$factory = $this->app->make('filesystem'); /* @var FilesystemManager $factory */
$factory->extend('gcs', function ($app, $config) {
$factory->extend('gcs' . $config, function ($app, $config) {
$storageClient = new StorageClient([
'projectId' => $config['project_id'],
'keyFilePath' => array_get($config, 'key_file'),
Expand Down