use IRouteCollection for HttpResponse
All checks were successful
soko-web/pipeline/head This commit looks good

This commit is contained in:
Bence Pőcze 2024-10-18 18:18:13 +02:00
parent fc2de8e1ab
commit 66040d69db
Signed by: bence
GPG Key ID: DC5BD6E95A333E6D

View File

@ -6,12 +6,12 @@ use SokoWeb\Interfaces\Response\IRedirect;
use SokoWeb\Interfaces\Response\IContent;
use SokoWeb\Interfaces\Authentication\IAuthenticationRequired;
use SokoWeb\Interfaces\Authorization\ISecured;
use SokoWeb\Interfaces\Routing\IRouteCollection;
use SokoWeb\Interfaces\Database\IConnection;
use SokoWeb\Interfaces\Request\IRequest;
use SokoWeb\Response\Redirect;
use SokoWeb\Response\HtmlContent;
use SokoWeb\Response\JsonContent;
use SokoWeb\Routing\RouteCollection;
class HttpResponse
{
@ -19,7 +19,7 @@ class HttpResponse
private IConnection $dbConnection;
private RouteCollection $routeCollection;
private IRouteCollection $routeCollection;
private array $appConfig;
@ -32,7 +32,7 @@ class HttpResponse
public function __construct(
IRequest $request,
IConnection $dbConnection,
RouteCollection $routeCollection,
IRouteCollection $routeCollection,
array $appConfig,
string $requestMethod,
string $requestUrl