mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-07-11 01:24:46 +02:00
40 lines
733 B
PHP
40 lines
733 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Actions\Storage\Wiki\Audio;
|
|
|
|
use App\Actions\Storage\Base\DeleteAction;
|
|
use App\Constants\Config\AudioConstants;
|
|
use App\Models\Wiki\Audio;
|
|
use Illuminate\Support\Facades\Config;
|
|
|
|
/**
|
|
* Class DeleteAudioAction.
|
|
*
|
|
* @extends DeleteAction<Audio>
|
|
*/
|
|
class DeleteAudioAction extends DeleteAction
|
|
{
|
|
public function __construct(Audio $audio)
|
|
{
|
|
parent::__construct($audio);
|
|
}
|
|
|
|
/**
|
|
* The list of disk names.
|
|
*/
|
|
public function disks(): array
|
|
{
|
|
return Config::get(AudioConstants::DISKS_QUALIFIED);
|
|
}
|
|
|
|
/**
|
|
* Get the path to delete.
|
|
*/
|
|
protected function path(): string
|
|
{
|
|
return $this->model->path();
|
|
}
|
|
}
|