-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modify PublicCDNAdapter for Flysystem v3 (#65)
Co-authored-by: Fexiven <[email protected]>
- Loading branch information
Showing
3 changed files
with
9 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,11 +18,11 @@ class PublicCDNAdapter extends PublicAdapter implements SilverstripePublicAdapte | |
|
||
protected $cdnAssetsDir; | ||
|
||
public function __construct(S3Client $client, $bucket, $prefix = '', $cdnPrefix = '', array $options = [], $cdnAssetsDir = '') | ||
public function __construct(S3Client $client, $bucket, $prefix = '', VisibilityConverter $visibility = null, MimeTypeDetector $mimeTypeDetector = null, $cdnPrefix = '', array $options = [], $cdnAssetsDir = '') | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
Fexiven
Author
Contributor
|
||
{ | ||
$this->cdnPrefix = $cdnPrefix; | ||
$this->cdnAssetsDir = $cdnAssetsDir ? $cdnAssetsDir : ASSETS_DIR; | ||
parent::__construct($client, $bucket, $prefix, $options); | ||
parent::__construct($client, $bucket, $prefix, $visibility, $mimeTypeDetector, $options); | ||
} | ||
|
||
/** | ||
|
@Fexiven Are you missing namespaces for these?