From e1174c1eb4ece45e25930e368c7bdbf05e74aeaf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Wed, 28 Jul 2021 08:55:10 +0200 Subject: [PATCH 1/1] Rename contact.name to contact.title --- Controller/DefaultController.php | 6 +++--- DependencyInjection/Configuration.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Controller/DefaultController.php b/Controller/DefaultController.php index bd53b1a..a128ed4 100644 --- a/Controller/DefaultController.php +++ b/Controller/DefaultController.php @@ -303,7 +303,7 @@ class DefaultController extends AbstractController { //Create message $message = (new TemplatedEmail()) //Set sender - ->from(new Address($this->config['contact']['mail'], $this->config['contact']['name'])) + ->from(new Address($this->config['contact']['mail'], $this->config['contact']['title'])) //Set recipient //XXX: remove the debug set in vendor/symfony/mime/Address.php +46 ->to(new Address($mail['context']['recipient_mail'], $mail['context']['recipient_name'])) @@ -442,7 +442,7 @@ class DefaultController extends AbstractController { //Create message $message = (new TemplatedEmail()) //Set sender - ->from(new Address($this->config['contact']['mail'], $this->config['contact']['name'])) + ->from(new Address($this->config['contact']['mail'], $this->config['contact']['title'])) //Set recipient //XXX: remove the debug set in vendor/symfony/mime/Address.php +46 ->to(new Address($mail['context']['recipient_mail'], $mail['context']['recipient_name'])) @@ -549,7 +549,7 @@ class DefaultController extends AbstractController { //Create message $message = (new TemplatedEmail()) //Set sender - ->from(new Address($this->config['contact']['mail'], $this->config['contact']['name'])) + ->from(new Address($this->config['contact']['mail'], $this->config['contact']['title'])) //Set recipient //XXX: remove the debug set in vendor/symfony/mime/Address.php +46 ->to(new Address($mail['context']['recipient_mail'], $mail['context']['recipient_name'])) diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 7b965a0..efc8a68 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -57,7 +57,7 @@ class Configuration implements ConfigurationInterface { 'en-gb' => 'English' ], 'contact' => [ - 'name' => 'John Doe', + 'title' => 'John Doe', 'mail' => 'contact@example.com' ], 'login' => [ @@ -217,7 +217,7 @@ class Configuration implements ConfigurationInterface { ->arrayNode('contact') ->addDefaultsIfNotSet() ->children() - ->scalarNode('name')->cannotBeEmpty()->defaultValue($defaults['contact']['name'])->end() + ->scalarNode('title')->cannotBeEmpty()->defaultValue($defaults['contact']['title'])->end() ->scalarNode('mail')->cannotBeEmpty()->defaultValue($defaults['contact']['mail'])->end() ->end() ->end() -- 2.41.1