mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-09-03 11:15:04 +02:00
49 lines
940 B
PHP
49 lines
940 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Actions\Http\Wiki\Video\Script;
|
|
|
|
use App\Actions\Http\DownloadAction;
|
|
use App\Constants\Config\VideoConstants;
|
|
use App\Models\Wiki\Video\VideoScript;
|
|
use Illuminate\Support\Facades\Config;
|
|
|
|
/**
|
|
* Class ScriptDownloadAction.
|
|
*
|
|
* @extends DownloadAction<VideoScript>
|
|
*/
|
|
class ScriptDownloadAction extends DownloadAction
|
|
{
|
|
/**
|
|
* Create a new action instance.
|
|
*
|
|
* @param VideoScript $script
|
|
*/
|
|
public function __construct(VideoScript $script)
|
|
{
|
|
parent::__construct($script);
|
|
}
|
|
|
|
/**
|
|
* Get the path of the resource in storage.
|
|
*
|
|
* @return string
|
|
*/
|
|
protected function path(): string
|
|
{
|
|
return $this->model->path;
|
|
}
|
|
|
|
/**
|
|
* The name of the disk.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function disk(): string
|
|
{
|
|
return Config::get(VideoConstants::SCRIPT_DISK_QUALIFIED);
|
|
}
|
|
}
|