mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
23 lines
464 B
PHP
23 lines
464 B
PHP
<?php
|
|
namespace Nexus\Attachment\Drivers;
|
|
|
|
use Nexus\Attachment\Storage;
|
|
|
|
class Local extends Storage {
|
|
|
|
function upload(string $filepath): string
|
|
{
|
|
throw new \RuntimeException("Not implemented");
|
|
}
|
|
|
|
function getBaseUrl(): string
|
|
{
|
|
return sprintf("%s/%s", getSchemeAndHttpHost(), trim(get_setting("attachment.httpdirectory"), '/'));
|
|
}
|
|
|
|
function getDriverName(): string
|
|
{
|
|
return static::DRIVER_LOCAL;
|
|
}
|
|
}
|