changes
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Containers\Dashboard\Actions\Posts;
|
||||
|
||||
use App\Containers\Dashboard\Tasks\Posts\BulkDeletePostsTask;
|
||||
|
||||
class BulkDeletePostsAction
|
||||
{
|
||||
public function __construct(
|
||||
private readonly BulkDeletePostsTask $bulkDeletePostsTask,
|
||||
) {}
|
||||
|
||||
public function run(array $ids): int
|
||||
{
|
||||
return $this->bulkDeletePostsTask->run($ids);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user