PointRetrait : On avance pas mal sur le frontOffice
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user