Externalisation de la clé API Google dans la config du module PlanificationLivraison

This commit is contained in:
2021-03-05 13:26:33 +01:00
parent 06d7ce53f2
commit c12f324366
14 changed files with 194 additions and 10 deletions

View File

@@ -0,0 +1,20 @@
<?php
namespace PlanificationLivraison\Hook;
use Thelia\Core\Event\Hook\HookRenderEvent;
use Thelia\Core\Hook\BaseHook;
/**
* Class HookManager
* @package PlanificationLivraison\Hook
*/
class HookManager extends BaseHook
{
public function onModuleConfiguration(HookRenderEvent $event)
{
$module_id = self::getModule()->getModuleId();
$event->add($this->render("module_configuration.html", ['module_id' => $module_id]));
}
}