Externalisation de la clé API Google dans la config du module PlanificationLivraison
This commit is contained in:
@@ -11,8 +11,19 @@
|
||||
</service>
|
||||
</services>
|
||||
|
||||
<forms>
|
||||
<form name="planiflivraison.configuration" class="PlanificationLivraison\Form\Configuration" />
|
||||
</forms>
|
||||
|
||||
|
||||
<loops>
|
||||
<loop name="scheduled_deliveries" class="PlanificationLivraison\Loop\ScheduledDeliveriesLoop"/>
|
||||
</loops>
|
||||
|
||||
<hooks>
|
||||
<hook id="planiflivraison.hook" class="PlanificationLivraison\Hook\HookManager">
|
||||
<tag name="hook.event_listener" event="module.configuration" type="back" method="onModuleConfiguration" />
|
||||
</hook>
|
||||
</hooks>
|
||||
|
||||
</config>
|
||||
|
||||
10
local/modules/PlanificationLivraison/Config/routing.xml
Normal file
10
local/modules/PlanificationLivraison/Config/routing.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<routes xmlns="http://symfony.com/schema/routing"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://symfony.com/schema/routing http://symfony.com/schema/routing/routing-1.0.xsd">
|
||||
|
||||
<route id="planiflivraison.configuration" path="/admin/module/PlanificationLivraison/configuration/update" methods="post">
|
||||
<default key="_controller">PlanificationLivraison\Controller\Configuration::editConfig</default>
|
||||
</route>
|
||||
|
||||
</routes>
|
||||
Reference in New Issue
Block a user