This commit is contained in:
F4ilji
2026-04-07 17:54:26 +05:00
parent 04adba6682
commit 936b1fb5b0
468 changed files with 43498 additions and 4176 deletions
@@ -0,0 +1,25 @@
<?php
namespace App\Containers\Dashboard\Actions;
use App\Containers\Dashboard\Tasks\Posts\GetAiPreparedPostsTask;
use App\Containers\Dashboard\Tasks\Stats\GetDashboardStatsTask;
use App\Containers\Dashboard\Tasks\Stats\GetRecentActivityTask;
class LoadDashboardDataAction
{
public function __construct(
private readonly GetAiPreparedPostsTask $getAiPreparedPostsTask,
private readonly GetDashboardStatsTask $getDashboardStatsTask,
private readonly GetRecentActivityTask $getRecentActivityTask,
) {}
public function run(): array
{
return [
'aiPreparedPosts' => $this->getAiPreparedPostsTask->run(),
'stats' => $this->getDashboardStatsTask->run(),
'recentActivity' => $this->getRecentActivityTask->run(),
];
}
}