diff --git a/Classes/Command/EmailCommandController.php b/Classes/Command/EmailCommandController.php index d5149dd..f93bcc0 100644 --- a/Classes/Command/EmailCommandController.php +++ b/Classes/Command/EmailCommandController.php @@ -25,10 +25,10 @@ class EmailCommandController extends CommandController * @param string $to The to address of the message * @param string $subject The subject of the message * @param string $body The body of the message - * @param string $contentType The body content type of the message (Default: test/plain) + * @param string $contentType The body content type of the message (Default: text/plain) * @param string $charset The body charset of the message (Default: UTF8) */ - public function sendCommand(string $from, string $to, string $subject, string $body = '', string $contentType = 'text/plain', $charset = 'UTF8'): void + public function sendCommand(string $from, string $to, string $subject, string $body = '', string $contentType = 'text/plain', string $charset = 'UTF8'): void { $message = (new Message()) ->setFrom($from) diff --git a/Classes/Mailer.php b/Classes/Mailer.php index ac3a487..20b7f32 100644 --- a/Classes/Mailer.php +++ b/Classes/Mailer.php @@ -1,4 +1,6 @@ generateId(); @@ -96,9 +83,6 @@ public function send(\Swift_Mime_SimpleMessage $message, &$failedRecipients = nu /** * Determine the best-use reverse path for this message - * - * @param \Swift_Mime_SimpleMessage $message - * @return string|null */ private function getReversePath(\Swift_Mime_SimpleMessage $message): string { @@ -123,18 +107,13 @@ private function getReversePath(\Swift_Mime_SimpleMessage $message): string /** * No op - * - * @param \Swift_Events_EventListener $plugin - * @return void */ public function registerPlugin(\Swift_Events_EventListener $plugin): void { } /** - * Check if this Transport mechanism is alive. - * - * @return bool Always true for this transport + * This Transport mechanism is always alive. */ public function ping(): bool { diff --git a/Classes/TransportFactory.php b/Classes/TransportFactory.php index d07a320..dd4e47a 100644 --- a/Classes/TransportFactory.php +++ b/Classes/TransportFactory.php @@ -24,22 +24,18 @@ class TransportFactory /** * Factory method which creates the specified transport with the given options. * - * @param string $transportType Object name of the transport to create - * @param array $transportOptions Options for the transport - * @param array $transportArguments Constructor arguments for the transport - * @return \Swift_Transport The created transport instance * @throws Exception * @throws \ReflectionException */ - public function create(string $transportType, array $transportOptions = [], array $transportArguments = null): \Swift_Transport + public function create(string $transportType, array $transportOptions = [], array $transportConstructorArguments = null): \Swift_Transport { if (!class_exists($transportType)) { throw new Exception(sprintf('The specified transport backend "%s" does not exist.', $transportType), 1269351207); } - if (is_array($transportArguments)) { + if (is_array($transportConstructorArguments)) { $class = new \ReflectionClass($transportType); - $transport = $class->newInstanceArgs($transportArguments); + $transport = $class->newInstanceArgs($transportConstructorArguments); } else { $transport = new $transportType(); } diff --git a/Migrations/Code/Version20161130105617.php b/Migrations/Code/Version20161130105617.php index 99536f7..26da176 100644 --- a/Migrations/Code/Version20161130105617.php +++ b/Migrations/Code/Version20161130105617.php @@ -1,4 +1,5 @@ searchAndReplace('TYPO3\SwiftMailer', 'Neos\SwiftMailer'); $this->searchAndReplace('TYPO3.SwiftMailer', 'Neos.SwiftMailer'); diff --git a/composer.json b/composer.json index b369496..0a78707 100644 --- a/composer.json +++ b/composer.json @@ -6,8 +6,8 @@ "MIT" ], "require": { - "neos/flow": "^5.2 || ^6.0 || ^7.0 || ^8.0 ||dev-master", - "swiftmailer/swiftmailer": "^6.0" + "neos/flow": "^8.3 || ^9.0 || dev-main", + "swiftmailer/swiftmailer": "^6.2.5" }, "autoload": { "psr-4": {