Fixes and upgrades - Fix deprecated stuff.

This commit is contained in:
2025-06-02 22:03:26 +02:00
parent 25ff16a9db
commit 280179ca7e
7 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -16,7 +16,7 @@
###> symfony/framework-bundle ### ###> symfony/framework-bundle ###
APP_ENV=dev APP_ENV=dev
APP_SECRET=d130654a5d6a8ab5945b20b22dfeee74 APP_SECRET=VerySecretKey
###< symfony/framework-bundle ### ###< symfony/framework-bundle ###
###> doctrine/doctrine-bundle ### ###> doctrine/doctrine-bundle ###
+1
View File
@@ -19,6 +19,7 @@ services:
MERCURE_EXTRA_DIRECTIVES: demo MERCURE_EXTRA_DIRECTIVES: demo
# See https://xdebug.org/docs/all_settings#mode # See https://xdebug.org/docs/all_settings#mode
XDEBUG_MODE: "${XDEBUG_MODE:-off}" XDEBUG_MODE: "${XDEBUG_MODE:-off}"
XDEBUG_CONFIG: "client_host=${XDEBUG_CLIENT_HOST:-host.docker.internal} discover_client_host=${XDEBUG_DISCOVER_CLIENT_HOST:-off}"
APP_ENV: "${APP_ENV:-dev}" APP_ENV: "${APP_ENV:-dev}"
# Change APP log path. # Change APP log path.
# SOMNIA_LOGSDIR: "/somnia_logs" # SOMNIA_LOGSDIR: "/somnia_logs"
+1 -1
View File
@@ -1,4 +1,4 @@
when@dev: when@dev:
_errors: _errors:
resource: '@FrameworkBundle/Resources/config/routing/errors.xml' resource: '@FrameworkBundle/Resources/config/routing/errors.php'
prefix: /_error prefix: /_error
+2 -2
View File
@@ -1,8 +1,8 @@
when@dev: when@dev:
web_profiler_wdt: web_profiler_wdt:
resource: '@WebProfilerBundle/Resources/config/routing/wdt.xml' resource: '@WebProfilerBundle/Resources/config/routing/wdt.php'
prefix: /_wdt prefix: /_wdt
web_profiler_profiler: web_profiler_profiler:
resource: '@WebProfilerBundle/Resources/config/routing/profiler.xml' resource: '@WebProfilerBundle/Resources/config/routing/profiler.php'
prefix: /_profiler prefix: /_profiler
+1 -1
View File
@@ -10,7 +10,7 @@ class ApiErrorException extends HttpException
private ApiErrorMessage $apiErrorMsg; private ApiErrorMessage $apiErrorMsg;
public function __construct(ApiErrorMessage $apiErrorMsg, $detailsData = null, \Exception $previous = null, array $headers = array(), $code = 0) public function __construct(ApiErrorMessage $apiErrorMsg, $detailsData = null, ?\Exception $previous = null, array $headers = array(), $code = 0)
{ {
$this->apiErrorMsg = $apiErrorMsg; $this->apiErrorMsg = $apiErrorMsg;
+1 -2
View File
@@ -113,8 +113,7 @@ class AppSetupController extends AbstractController
]); ]);
} }
private function GoToResultPage(bool $isError, string $message, ?string $linkRoute = null, ?string $linkLabel = null): Response
private function GoToResultPage(bool $isError, string $message, string $linkRoute = null, string $linkLabel = null): Response
{ {
return $this->render('app_setup/result.html.twig', [ return $this->render('app_setup/result.html.twig', [
'isError' => $isError, 'isError' => $isError,
+1 -1
View File
@@ -182,7 +182,7 @@ class ExampleDataService
$this->entityManager->persist($fareTable); $this->entityManager->persist($fareTable);
for ($i = 1; $i < $room->getMaxGuestNum(); $i++) { for ($i = 1; $i <= $room->getMaxGuestNum(); $i++) {
$roomFare = new RoomFare(); $roomFare = new RoomFare();
$roomFare->setGuestNumber($i); $roomFare->setGuestNumber($i);
$roomFare->setFareTable($fareTable); $roomFare->setFareTable($fareTable);