/**
  * Constructor
  *
  * @author Art <*****@*****.**>
  *
  * @param LoggerInterface $logger If provided, this will be used to log exceptions.
  * @param ErrorConfig     $cfg    The configuration class
  *
  * @since  1.4 $cfg added. This will become the first parameter in the constructor in 2.0
  */
 public function __construct(LoggerInterface $logger = null, ErrorConfig $cfg = null)
 {
     parent::__construct($logger, Alo::ifnull($cfg, new ErrorConfig()));
     $this->errorReporting = (int) $this->config->errorLevel;
 }
 /**
  * Constructor
  *
  * @author Art <*****@*****.**>
  *
  * @param LoggerInterface $logger If provided, this will be used to log exceptions.
  * @param ExceptionConfig $cfg    The configuration class
  *
  * @since  1.4 $cfg added. This will become the first parameter in the constructor in 2.0
  */
 public function __construct(LoggerInterface $logger = null, ExceptionConfig $cfg = null)
 {
     parent::__construct($logger, Alo::ifnull($cfg, new ExceptionConfig()));
 }