protected function createSwiftMailer(Swift_Transport $transport): Swift_Mailer
    {
        if (isset($this->resolvedOptions['domain'])) {
            Swift_DependencyContainer::getInstance()
                ->register('mime.idgenerator.idright')
                ->asValue($this->resolvedOptions['domain']);
        }

        return new Swift_Mailer($transport);
    }
protected function createSwiftMailer(Swift_Transport $transport): Swift_Mailer
    {
        if (isset($this->resolvedOptions['domain'])) {
            Swift_DependencyContainer::getInstance()
                ->register('mime.idgenerator.idright')
                ->asValue($this->resolvedOptions['domain']);
        }

        return new Swift_Mailer($transport);
    }
protected function createSwiftMailer ( Swift_Transport $ transport ) : Swift_Mailer { if ( isset ( $ this -> resolvedOptions [ 'domain' ] ) ) { Swift_DependencyContainer :: getInstance ( ) -> register ( 'mime.idgenerator.idright' ) -> asValue ( $ this -> resolvedOptions [ 'domain' ] ) ; } return new Swift_Mailer ( $ transport ) ; }
Create a new SwiftMailer instance.

@param \Swift_Transport $transport

@return \Swift_Mailer
Create a new SwiftMailer instance .