changes
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\Containers\Dashboard\Actions\Posts;
|
||||
|
||||
use App\Containers\Article\Models\Post;
|
||||
use App\Containers\Dashboard\Tasks\Posts\DeletePostTask;
|
||||
|
||||
class DeletePostAction
|
||||
{
|
||||
public function __construct(
|
||||
private readonly DeletePostTask $deletePostTask,
|
||||
) {}
|
||||
|
||||
public function run(Post $post): bool
|
||||
{
|
||||
return $this->deletePostTask->run($post);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user