mirror of
https://github.com/SociallyDev/Spaces-API.git
synced 2025-08-14 02:27:23 -07:00
Added array keys for space and file listing
This commit is contained in:
parent
f9b49002c7
commit
cfea1967ab
11 changed files with 41 additions and 27 deletions
|
@ -61,7 +61,7 @@ class Spaces
|
|||
$spaces = [];
|
||||
|
||||
foreach (Result::parse($this->s3->listBuckets()['Buckets']) as $bucket) {
|
||||
$spaces[] = new Space($this->s3, $bucket['Name']);
|
||||
$spaces[$bucket['Name']] = new Space($this->s3, $bucket['Name']);
|
||||
}
|
||||
|
||||
return $spaces;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue