File "Bindings.php"

Full Path: /home/alforbsx/alfouadgroup.co/wp-content/plugins/fluent-smtp/app/Bindings.php
File size: 1.31 KB
MIME-type: text/x-php
Charset: utf-8

<?php

$singletons = [
    'manager'     => 'FluentMail\App\Services\Mailer\Manager',
    'smtp'        => 'FluentMail\App\Services\Mailer\Providers\Smtp\Handler',
    'ses'         => 'FluentMail\App\Services\Mailer\Providers\AmazonSes\Handler',
    'mailgun'     => 'FluentMail\App\Services\Mailer\Providers\Mailgun\Handler',
    'sendgrid'    => 'FluentMail\App\Services\Mailer\Providers\SendGrid\Handler',
    'pepipost'    => 'FluentMail\App\Services\Mailer\Providers\PepiPost\Handler',
    'sparkpost'   => 'FluentMail\App\Services\Mailer\Providers\SparkPost\Handler',
    'default'     => 'FluentMail\App\Services\Mailer\Providers\DefaultMail\Handler',
    'sendinblue'  => 'FluentMail\App\Services\Mailer\Providers\SendInBlue\Handler',
    'gmail'       => 'FluentMail\App\Services\Mailer\Providers\Gmail\Handler',
    'outlook'     => 'FluentMail\App\Services\Mailer\Providers\Outlook\Handler',
    'postmark'    => 'FluentMail\App\Services\Mailer\Providers\Postmark\Handler',
    'elasticmail' => 'FluentMail\App\Services\Mailer\Providers\ElasticMail\Handler',
    'smtp2go'     => 'FluentMail\App\Services\Mailer\Providers\Smtp2Go\Handler',
];

foreach ($singletons as $key => $className) {
    $app->alias($className, $key);
    $app->singleton($className, function($app) use ($className) {
        return new $className();
    });
}