base = ($isSecure ? 'https://' : 'http://') . trim($domain, '/'); } #[Override] public function isEnabled(): bool { // Local CDN is always enabled return true; } #[Override] public function getName(): string { return 'Local'; } #[Override] public function getUrl(string $path): string { if (is_null($this->base)) { return ''; } return $this->base . '/uploads/' . preg_replace('/(\/+)/', '/', trim($path, '/')); } }