refactor search functionality; remove deprecated services and implement new action and task classes for improved structure and maintainability
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Containers\Search\Actions;
|
||||
|
||||
use App\Containers\Search\Tasks\BuildStaticFileIndexTask;
|
||||
|
||||
class RebuildStaticSearchIndexAction
|
||||
{
|
||||
public function run(): array
|
||||
{
|
||||
// Clear existing cache (optional, depending on rebuild logic, but typical for full rebuilds)
|
||||
// app(ClearStaticSearchCacheAction::class)->run();
|
||||
|
||||
return app(BuildStaticFileIndexTask::class)->run();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user