Closed On5-Repos closed 3 years ago
This seems to be a documentation issue. Let me check.
thanks, 👍
try this:
services:
acme.google_storage_client:
class: Google\Cloud\Storage\StorageClient
arguments:
- projectId: "your-project-id"
keyFilePath: '/path/to/service-account.json' # optional
acme.google_storage_bucket:
class: Google\Cloud\Storage\Bucket
factory: ['@acme.google_storage_client', 'bucket']
arguments:
- 'your-bucket-name'
Does this work in your case?
yes, auto wiring is working now. cheers
I've updated the documentation 👍
Bug Report
Following documentation to integrate with Google Storage Bucket, everything is ok but i am unable to register filesystem Please see below.
acme.google_storage_client: class: Google\Cloud\Storage\StorageClient arguments:
projectId: "xxxxxxxx" keyFilePath: '../xxxxxx.json' # optional
acme.google_storage_bucket: class: Google\Cloud\Storage\Bucket factory: 'acme.google_storage_client:bucket' arguments:
Error: Invalid service "acme.google_storage_bucket": function "acme.google_storage_client:bucket" does not exist.