/** * Apply any set default object parameters to a request * * @param RequestInterface $request Request object to apply to */ protected function applyDefaults(RequestInterface $request) { parent::applyDefaults($request); // If an ACL has been specified, set it on the request if ($this->get('acl')) { $request->setHeader('x-amz-acl', $this->get('acl')); } // If a storage class has been specified, set it on the request if ($this->get('storage_class')) { $request->setHeader('x-amz-storage-class', $this->get('storage_class')); } }