File: 0001-Load-psr-log-directly.patch

package info (click to toggle)
php-klogger 1.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 148 kB
  • sloc: php: 239; makefile: 18; xml: 18; sh: 1
file content (16 lines) | stat: -rw-r--r-- 376 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Load psr log directly
 Work around the lack of proper autoload.php from Composer.
Forwarded: not-needed
Author: James Valleroy <jvalleroy@mailbox.org>

--- a/src/Logger.php
+++ b/src/Logger.php
@@ -1,6 +1,8 @@
 <?php
 namespace Katzgrau\KLogger;
 
+require_once 'Psr/Log/autoload.php';
+
 use DateTime;
 use RuntimeException;
 use Psr\Log\AbstractLogger;