PHP 8.3.31
Preview: MessageHandler.php Size: 734 B
/home/getspomw/royalsquad.us/vendor/symfony/mailer/Messenger/MessageHandler.php

<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Mailer\Messenger;

use Symfony\Component\Mailer\SentMessage;
use Symfony\Component\Mailer\Transport\TransportInterface;

/**
 * @author Fabien Potencier <fabien@symfony.com>
 */
class MessageHandler
{
    public function __construct(
        private TransportInterface $transport,
    ) {
    }

    public function __invoke(SendEmailMessage $message): ?SentMessage
    {
        return $this->transport->send($message->getMessage(), $message->getEnvelope());
    }
}

Directory Contents

Dirs: 0 × Files: 2

Name Size Perms Modified Actions
734 B lrw-rw-rw- 2025-09-17 06:53:22
Edit Download
755 B lrw-rw-rw- 2025-09-17 06:53:22
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).