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

@@ -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>

View 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>