public function __construct($app, array $defaultPaths = null, \Psr\Log\LoggerInterface $logger = null)
 {
     $this->app = $app;
     $this->logger = $logger;
     if (!is_null($defaultPaths)) {
         foreach ($defaultPaths as $format => $path) {
             BooBoo::defaultErrorPath($format, $path);
         }
     }
 }
Esempio n. 2
0
 public function __construct($app, array $defaultPaths = null, \Psr\Log\LoggerInterface $logger = null, $traceAlwaysOn = false, \Closure $lastAction = null, $ignore = [])
 {
     $this->app = $app;
     // Start BooBoo
     BooBoo::setUp($logger, $traceAlwaysOn, $lastAction, $ignore);
     if (!is_null($defaultPaths)) {
         foreach ($defaultPaths as $format => $path) {
             BooBoo::defaultErrorPath($format, $path);
         }
     }
 }