Optimierung 4.3/4.4 (Suche): Page-Data-Service + Invokable Controller

Suche-Closure in SuchePageData + Web\SucheController verschoben. Verhalten
unveraendert, 92 Web-Tests gruen.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Kevin Adametz 2026-06-19 12:01:18 +00:00
parent 7625ec7ed5
commit 418a2bca4c
3 changed files with 55 additions and 25 deletions

View file

@ -0,0 +1,16 @@
<?php
namespace App\Http\Controllers\Web;
use App\Http\Controllers\Controller;
use App\Services\Web\SuchePageData;
use App\Support\WebPortalContext;
use Illuminate\Contracts\View\View;
class SucheController extends Controller
{
public function __invoke(SuchePageData $pageData): View
{
return view('web.suche', $pageData->build(WebPortalContext::fromRequest()));
}
}