PHP Classes
elePHPant
Icontem

File: src/PHPMailerHandler.php

Recommend this page to a friend!
  Classes of Filip Štamcar  >  PHPMailer Logging with Monolog  >  src/PHPMailerHandler.php  >  Download  
File: src/PHPMailerHandler.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHPMailer Logging with Monolog
Log email sent via PHPMailer using Monolog
Author: By
Last change:
Date: 7 months ago
Size: 484 bytes
 

Contents

Class file image Download
<?php

/**
 * Loads required handler.
 *
 * It loads required handler class for Monolog 1.x or 2.x depending on its version.
 *
 * @since 1.0.0
 *
 * @author Filip ? <projects@filips.si>
 *
 * @license MIT
 *
 * @package MonologPHPMailer
 */

use Monolog\Logger;

if (
Logger::API == 1) {
   
class_alias('MonologPHPMailer\PHPMailerHandler1', 'MonologPHPMailer\PHPMailerHandler');
} else {
   
class_alias('MonologPHPMailer\PHPMailerHandler2', 'MonologPHPMailer\PHPMailerHandler');
}