From: Raphaƫl Gertz <git@rapsys.eu>
Date: Wed, 28 Jul 2021 06:55:10 +0000 (+0200)
Subject: Rename contact.name to contact.title
X-Git-Tag: 0.2.0~85
X-Git-Url: https://git.rapsys.eu/userbundle/commitdiff_plain/e1174c1eb4ece45e25930e368c7bdbf05e74aeaf?ds=inline
Rename contact.name to contact.title
---
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()