PointRetrait : On avance pas mal sur le frontOffice

This commit is contained in:
2021-03-05 19:00:53 +01:00
parent c12f324366
commit 0bbab6b568
20 changed files with 276 additions and 158 deletions

View File

@@ -33,10 +33,12 @@ class Configuration extends BaseAdminController
$validateForm = $this->validateForm($form);
$data = $validateForm->getData();
PlanificationLivraison::setConfigValue(
PlanificationLivraison::CONFIG_VALUE_NAME,
$data["google_api_key"]
);
PlanificationLivraison::setConfigValue(PlanificationLivraison::CONFIG_API_KEY, $data["google_api_key"]);
PlanificationLivraison::setConfigValue(PlanificationLivraison::CONFIG_MAP_CENTER_LAT, $data["map_center_lat"]);
PlanificationLivraison::setConfigValue(PlanificationLivraison::CONFIG_MAP_CENTER_LNG, $data["map_center_lng"]);
PlanificationLivraison::setConfigValue(PlanificationLivraison::CONFIG_RED_ALERT, $data["delay_red_alert"]);
PlanificationLivraison::setConfigValue(PlanificationLivraison::CONFIG_ORANGE_ALERT, $data["delay_orange_alert"]);
PlanificationLivraison::setConfigValue(PlanificationLivraison::CONFIG_PREPARATION_DELAY, $data["orders_preparation_delay"]);
return $this->redirectToConfigurationPage();