diff --git a/.env b/.env index f2f40d1..b98bb95 100644 --- a/.env +++ b/.env @@ -35,5 +35,3 @@ MAILER_URL=null://localhost ###< symfony/swiftmailer-bundle ### ASSET_BASE_URL=null -UMAMI_URL= -GIPHY_API_KEY= diff --git a/config/packages/twig.yaml b/config/packages/twig.yaml index 6ed5a02..d186edc 100644 --- a/config/packages/twig.yaml +++ b/config/packages/twig.yaml @@ -5,6 +5,3 @@ twig: paths: '%kernel.project_dir%/templates/core/': Core '%kernel.project_dir%/core/Resources/views/': Core - globals: - umami_url: '%env(UMAMI_URL)%' - giphy_api_key: '%env(GIPHY_API_KEY)%' diff --git a/src/EventSuscriber/SettingEventSubscriber.php b/src/EventSuscriber/SettingEventSubscriber.php index 6ceb9c4..d070e5f 100644 --- a/src/EventSuscriber/SettingEventSubscriber.php +++ b/src/EventSuscriber/SettingEventSubscriber.php @@ -30,6 +30,10 @@ class SettingEventSubscriber extends EventSubscriber $this->manager->init('email_sender', '🤖 E-mail', 'Expéditeur', ''); $this->manager->init('email_contact', '🤖 E-mail', 'Destinataire formulaire de contact', ''); $this->manager->init('email_comment', '🤖 E-mail', 'Destinataire nouveau commentaire', ''); + + $this->manager->init('stats_umami_url', '📊 Statistiques', 'Adresse tableau de bord Umami', ''); + + $this->manager->init('giphy_api_key', '🌐 API', 'Clé d\'API Giphy', ''); } public function onFormInit(SettingEvent $event) diff --git a/templates/bundles/TwigBundle/Exception/error.html.twig b/templates/bundles/TwigBundle/Exception/error.html.twig index 132fb52..ce7a796 100644 --- a/templates/bundles/TwigBundle/Exception/error.html.twig +++ b/templates/bundles/TwigBundle/Exception/error.html.twig @@ -114,7 +114,7 @@ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX