Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 150 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 150 Revision 399
Zeile 169... Zeile 169...
169
     */
169
     */
170
    protected function createSmtpTransport(array $config)
170
    protected function createSmtpTransport(array $config)
171
    {
171
    {
172
        $factory = new EsmtpTransportFactory;
172
        $factory = new EsmtpTransportFactory;
Zeile -... Zeile 173...
-
 
173
 
-
 
174
        $scheme = $config['scheme'] ?? null;
-
 
175
 
-
 
176
        if (! $scheme) {
-
 
177
            $scheme = ! empty($config['encryption']) && $config['encryption'] === 'tls'
-
 
178
                ? (($config['port'] == 465) ? 'smtps' : 'smtp')
-
 
179
                : '';
-
 
180
        }
173
 
181
 
174
        $transport = $factory->create(new Dsn(
182
        $transport = $factory->create(new Dsn(
175
            ! empty($config['encryption']) && $config['encryption'] === 'tls' ? (($config['port'] == 465) ? 'smtps' : 'smtp') : '',
183
            $scheme,
176
            $config['host'],
184
            $config['host'],
177
            $config['username'] ?? null,
185
            $config['username'] ?? null,
178
            $config['password'] ?? null,
186
            $config['password'] ?? null,
179
            $config['port'] ?? null,
187
            $config['port'] ?? null,
Zeile 269... Zeile 277...
269
 
277
 
270
    /**
278
    /**
271
     * Create an instance of the Symfony Mailgun Transport driver.
279
     * Create an instance of the Symfony Mailgun Transport driver.
272
     *
280
     *
273
     * @param  array  $config
281
     * @param  array  $config
274
     * @return \Symfony\Component\Mailer\Bridge\Mailgun\Transport\MailgunApiTransport
282
     * @return \Symfony\Component\Mailer\Transport\TransportInterface
275
     */
283
     */
276
    protected function createMailgunTransport(array $config)
284
    protected function createMailgunTransport(array $config)
277
    {
285
    {