mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-09-04 11:45:00 +02:00
* feat: use process facade for FFmpeg routines * style: fix StyleCI findings
49 lines
879 B
PHP
49 lines
879 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Actions\Storage\Wiki\Video;
|
|
|
|
use App\Actions\Storage\Base\DeleteAction;
|
|
use App\Constants\Config\VideoConstants;
|
|
use App\Models\Wiki\Video;
|
|
use Illuminate\Support\Facades\Config;
|
|
|
|
/**
|
|
* Class DeleteVideoAction.
|
|
*
|
|
* @extends DeleteAction<Video>
|
|
*/
|
|
class DeleteVideoAction extends DeleteAction
|
|
{
|
|
/**
|
|
* Create a new action instance.
|
|
*
|
|
* @param Video $video
|
|
*/
|
|
public function __construct(Video $video)
|
|
{
|
|
parent::__construct($video);
|
|
}
|
|
|
|
/**
|
|
* The list of disk names.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function disks(): array
|
|
{
|
|
return Config::get(VideoConstants::DISKS_QUALIFIED);
|
|
}
|
|
|
|
/**
|
|
* Get the path to delete.
|
|
*
|
|
* @return string
|
|
*/
|
|
protected function path(): string
|
|
{
|
|
return $this->model->path();
|
|
}
|
|
}
|