chore: cleanup

This commit is contained in:
2025-07-13 21:27:54 -05:00
parent accfa9c9bf
commit b42981b2a1
8 changed files with 27 additions and 31 deletions

View File

@@ -2,9 +2,9 @@
namespace App\Library\Framework\Controller;
use App\Library\Action\Handler\SearchHandler;
use App\Library\Action\Input\SearchInput;
use App\Library\Action\Result\SearchResult;
use App\Library\Action\Handler\LibrarySearchHandler;
use App\Library\Action\Input\LibrarySearchInput;
use App\Library\Action\Result\LibrarySearchResult;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
@@ -14,7 +14,7 @@ use Symfony\UX\Turbo\TurboBundle;
class Api extends AbstractController
{
#[Route('/api/library/search', name: 'api.library.search', methods: ['GET'])]
public function search(SearchInput $input, SearchHandler $handler, Request $request): Response
public function search(LibrarySearchInput $input, LibrarySearchHandler $handler, Request $request): Response
{
$result = $handler->handle($input->toCommand());
@@ -25,7 +25,7 @@ class Api extends AbstractController
return $this->json($handler->handle($input->toCommand()));
}
private function sendFragmentResponse(SearchResult $result, Request $request): Response
private function sendFragmentResponse(LibrarySearchResult $result, Request $request): Response
{
$request->setRequestFormat(TurboBundle::STREAM_FORMAT);
return $this->renderBlock(