feat: special agreements for disposition

This commit is contained in:
Björn Fromme
2024-04-04 13:06:35 +02:00
parent 4d1ea7aad7
commit 26239488ba
19 changed files with 310 additions and 31 deletions
+13
View File
@@ -0,0 +1,13 @@
<?php
namespace App\Htmx;
use Symfony\Component\HttpFoundation\Response;
class HxTriggerResponse extends Response
{
public function __construct(string $content, string $trigger)
{
return parent::__construct($content, Response::HTTP_OK, ['HX-Trigger' => $trigger]);
}
}