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

Commit

Permalink
Enable multiple gcs config
Browse files Browse the repository at this point in the history
  • Loading branch information
takeokunn committed Apr 21, 2018
1 parent ea9a428 commit d84dc9b
Showing 1 changed file with 4 additions and 2 deletions.
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 = '')
{
$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

0 comments on commit d84dc9b

Please sign in to comment.