Skip to content
Snippets Groups Projects
Commit 0d0f1f20 authored by Adam Shepherd's avatar Adam Shepherd
Browse files

Issue #3255835 by AdamPS, merlin06, axle_foley00: Send Test Email (correction)

parent c33a67ec
No related branches found
No related tags found
No related merge requests found
......@@ -4,21 +4,21 @@ namespace Drupal\symfony_mailer\Form;
use Drupal\Core\Form\FormBase;
use Drupal\Core\Form\FormStateInterface;
use Drupal\symfony_mailer\EmailFactory;
use Drupal\symfony_mailer\EmailFactoryInterface;
use Drupal\symfony_mailer\MailerHelperInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
* Symfony Mailer test form.
* Symfony Mailer test email form.
*/
class TestForm extends FormBase {
class TestEmailForm extends FormBase {
/**
* The email factory service.
*
* @var \Drupal\symfony_mailer\EmailFactory
* @var \Drupal\symfony_mailer\EmailFactoryInterface
*/
protected EmailFactory $emailFactory;
protected $emailFactory;
/**
* The mailer helper.
......@@ -30,12 +30,12 @@ class TestForm extends FormBase {
/**
* Constructs a new TestForm.
*
* @param \Drupal\symfony_mailer\EmailFactory $email_factory
* @param \Drupal\symfony_mailer\EmailFactoryInterface $email_factory
* The email factory service.
* @param \Drupal\symfony_mailer\MailerHelperInterface $helper
* The mailer helper.
*/
public function __construct(EmailFactory $email_factory, MailerHelperInterface $helper) {
public function __construct(EmailFactoryInterface $email_factory, MailerHelperInterface $helper) {
$this->emailFactory = $email_factory;
$this->helper = $helper;
}
......
......@@ -111,7 +111,7 @@ symfony_mailer.import.skip:
symfony_mailer.test:
path: '/admin/config/system/mailer/test'
defaults:
_form: '\Drupal\symfony_mailer\Form\TestForm'
_form: '\Drupal\symfony_mailer\Form\TestEmailForm'
_title: 'Mailer test'
requirements:
_permission: 'administer mailer'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment