mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-11-13 09:38:48 +01:00
24 lines
528 B
PHP
24 lines
528 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Events\Wiki\Video\Script;
|
|
|
|
use App\Actions\Storage\Wiki\Video\Script\DeleteScriptAction;
|
|
use App\Contracts\Events\RemoveFromStorageEvent;
|
|
use App\Events\BaseEvent;
|
|
use App\Models\Wiki\Video\VideoScript;
|
|
|
|
/**
|
|
* @extends BaseEvent<VideoScript>
|
|
*/
|
|
class VideoScriptForceDeleting extends BaseEvent implements RemoveFromStorageEvent
|
|
{
|
|
public function removeFromStorage(): void
|
|
{
|
|
$action = new DeleteScriptAction($this->getModel());
|
|
|
|
$action->handle();
|
|
}
|
|
}
|