src/Loggers/SwiftMailer/SendmailTransportMailerFactory.php
/**
     * Creates a new swift mailer instance based on the passed transport configuration.
     *
     * @param \TechDivision\Import\Configuration\SwiftMailer\TransportConfigurationInterface $transportConfiguration The mailer configuration
     *
     * @return \Swift_Mailer The mailer instance
     */
Creates a new swift mailer instance based on the passed transport configuration.

@return \Swift_Mailer The mailer instance
Creates a new swift mailer instance based on the passed transport configuration . @return \ Swift_Mailer The mailer instance
public function factory(TransportConfigurationInterface $transportConfiguration)
    {
        $command = '/usr/sbin/sendmail -bs';
        if ($transportConfiguration->hasParam(SwiftMailerKeys::COMMAND)) {
            $command = $transportConfiguration->getParam(SwiftMailerKeys::COMMAND);
        }
        $transport = \Swift_SendmailTransport::newInstance($command);
        return \Swift_Mailer::newInstance($transport);
    }
public function factory ( TransportConfigurationInterface $ transportConfiguration ) { $ command = '/usr/sbin/sendmail -bs' ; if ( $ transportConfiguration -> hasParam ( SwiftMailerKeys :: COMMAND ) ) { $ command = $ transportConfiguration -> getParam ( SwiftMailerKeys :: COMMAND ) ; } $ transport = \ Swift_SendmailTransport :: newInstance ( $ command ) ; return \ Swift_Mailer :: newInstance ( $ transport ) ; }
Creates a new swift mailer instance based on the passed transport configuration.
Creates a new swift mailer instance based on the passed transport configuration .
// initialize and load the sendmail command parameter // initialize and create the mailer transport instance // initialize, create and return the swift mailer instance