Final Class yii\symfonymailer\SMimeMessageEncrypter

Inheritanceyii\symfonymailer\SMimeMessageEncrypter
Implementsyii\symfonymailer\MessageEncrypterInterface
Source Code https://github.com/yiisoft/yii2-symfonymailer/blob/master/src/SMimeMessageEncrypter.php

Method Details

Hide inherited methods

__construct() public method

public void __construct ( \Symfony\Component\Mime\Crypto\SMimeEncrypter $encrypter )
$encrypter

                public function __construct(private readonly SMimeEncrypter $encrypter) {}

            
encrypt() public method

public void encrypt ( \Symfony\Component\Mime\Message $message )
$message

                public function encrypt(Message $message): Message
{
    return $this->encrypter->encrypt($message);
}