]> Raphaël G. Git Repositories - userbundle/commitdiff
Rename contact.name to contact.title
authorRaphaël Gertz <git@rapsys.eu>
Wed, 28 Jul 2021 06:55:10 +0000 (08:55 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Wed, 28 Jul 2021 06:55:10 +0000 (08:55 +0200)
Controller/DefaultController.php
DependencyInjection/Configuration.php

index bd53b1a9c90ebd76a63e19b0045cbcdfde7770c3..a128ed4bfd9d0bd32318a568d457ee7d00ede342 100644 (file)
@@ -303,7 +303,7 @@ class DefaultController extends AbstractController {
                                        //Create message
                                        $message = (new TemplatedEmail())
                                                //Set sender
                                        //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']))
                                                //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
                                        //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']))
                                                //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
                                //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']))
                                        //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']))
index 7b965a056fb34dd8970de73411bcb24605324767..efc8a686f5638f5645aa0addad429f1a42498425 100644 (file)
@@ -57,7 +57,7 @@ class Configuration implements ConfigurationInterface {
                                'en-gb' => 'English'
                        ],
                        'contact' => [
                                'en-gb' => 'English'
                        ],
                        'contact' => [
-                               'name' => 'John Doe',
+                               'title' => 'John Doe',
                                'mail' => 'contact@example.com'
                        ],
                        'login' => [
                                'mail' => 'contact@example.com'
                        ],
                        'login' => [
@@ -217,7 +217,7 @@ class Configuration implements ConfigurationInterface {
                                        ->arrayNode('contact')
                                                ->addDefaultsIfNotSet()
                                                ->children()
                                        ->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()
                                                        ->scalarNode('mail')->cannotBeEmpty()->defaultValue($defaults['contact']['mail'])->end()
                                                ->end()
                                        ->end()