Externalisation de la clé API Google dans la config du module PlanificationLivraison
This commit is contained in:
20
local/modules/PlanificationLivraison/Hook/HookManager.php
Normal file
20
local/modules/PlanificationLivraison/Hook/HookManager.php
Normal 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]));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user