From 1d9bbd0f3977a34209f6c21deff112c26e9cbd63 Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Tue, 20 Sep 2022 16:24:02 +1200 Subject: [PATCH] feat: add setCdnPrefix() --- src/Adapter/PublicCDNAdapter.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Adapter/PublicCDNAdapter.php b/src/Adapter/PublicCDNAdapter.php index 85a4862..40261a4 100644 --- a/src/Adapter/PublicCDNAdapter.php +++ b/src/Adapter/PublicCDNAdapter.php @@ -30,4 +30,12 @@ public function getPublicUrl($path) { return Controller::join_links($this->cdnPrefix, ASSETS_DIR, $path); } + + + public function setCdnPrefix(string $cdnPrefix): self + { + $this->cdnPrefix = $cdnPrefix; + + return $this; + } }