forked from Somnia/SomniaRooms
Fixes and upgrades - Fix deprecated stuff.
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
|
||||
###> symfony/framework-bundle ###
|
||||
APP_ENV=dev
|
||||
APP_SECRET=d130654a5d6a8ab5945b20b22dfeee74
|
||||
APP_SECRET=VerySecretKey
|
||||
###< symfony/framework-bundle ###
|
||||
|
||||
###> doctrine/doctrine-bundle ###
|
||||
|
||||
@@ -19,6 +19,7 @@ services:
|
||||
MERCURE_EXTRA_DIRECTIVES: demo
|
||||
# See https://xdebug.org/docs/all_settings#mode
|
||||
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}"
|
||||
# Change APP log path.
|
||||
# SOMNIA_LOGSDIR: "/somnia_logs"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
when@dev:
|
||||
_errors:
|
||||
resource: '@FrameworkBundle/Resources/config/routing/errors.xml'
|
||||
resource: '@FrameworkBundle/Resources/config/routing/errors.php'
|
||||
prefix: /_error
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
when@dev:
|
||||
web_profiler_wdt:
|
||||
resource: '@WebProfilerBundle/Resources/config/routing/wdt.xml'
|
||||
resource: '@WebProfilerBundle/Resources/config/routing/wdt.php'
|
||||
prefix: /_wdt
|
||||
|
||||
web_profiler_profiler:
|
||||
resource: '@WebProfilerBundle/Resources/config/routing/profiler.xml'
|
||||
resource: '@WebProfilerBundle/Resources/config/routing/profiler.php'
|
||||
prefix: /_profiler
|
||||
|
||||
@@ -10,7 +10,7 @@ class ApiErrorException extends HttpException
|
||||
|
||||
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;
|
||||
|
||||
|
||||
@@ -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', [
|
||||
'isError' => $isError,
|
||||
|
||||
@@ -182,7 +182,7 @@ class ExampleDataService
|
||||
|
||||
$this->entityManager->persist($fareTable);
|
||||
|
||||
for ($i = 1; $i < $room->getMaxGuestNum(); $i++) {
|
||||
for ($i = 1; $i <= $room->getMaxGuestNum(); $i++) {
|
||||
$roomFare = new RoomFare();
|
||||
$roomFare->setGuestNumber($i);
|
||||
$roomFare->setFareTable($fareTable);
|
||||
|
||||
Reference in New Issue
Block a user