Fix parameter order

This commit is contained in:
Daniel Guzman 2024-06-08 23:49:53 +02:00
parent 6b85ad784c
commit 9b0630133c
1 changed files with 1 additions and 2 deletions

View File

@ -2,7 +2,6 @@
namespace DMD\LaLigaApi\Service\Season\createFacilities; namespace DMD\LaLigaApi\Service\Season\createFacilities;
use DMD\LaLigaApi\Controller\SeasonController;
use DMD\LaLigaApi\Dto\FacilityDto; use DMD\LaLigaApi\Dto\FacilityDto;
use DMD\LaLigaApi\Entity\Season; use DMD\LaLigaApi\Entity\Season;
use DMD\LaLigaApi\Entity\User; use DMD\LaLigaApi\Entity\User;
@ -32,7 +31,7 @@ class HandleCreateFacilities
/** /**
* @throws ValidationException * @throws ValidationException
*/ */
public function __invoke(Request $request, int $seasonId, int $leagueId): JsonResponse public function __invoke(Request $request, int $leagueId, int $seasonId): JsonResponse
{ {
$userEntity = $this->security->getUser(); $userEntity = $this->security->getUser();
$this->authorizeRequest->authorizeLeaguePresident($leagueId); $this->authorizeRequest->authorizeLeaguePresident($leagueId);