Skip to content

Commit

Permalink
Allow getOptionsFromConfig to pass metadata (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeyVelt authored and matthewgoslett committed Jan 31, 2017
1 parent a307060 commit fedbdca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/GoogleStorageAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ protected function getOptionsFromConfig(Config $config)
// we therefore default to private
$options['predefinedAcl'] = $this->getPredefinedAclForVisibility(AdapterInterface::VISIBILITY_PRIVATE);
}

if ($metadata = $config->get('metadata')) {
$options['metadata'] = $metadata;
}

return $options;
}
Expand Down

0 comments on commit fedbdca

Please sign in to comment.