File: 0002-Load-psr-log-directly-instead-of-relying-on-Composer.patch

package info (click to toggle)
php-analog 1.0.7-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 424 kB
  • ctags: 232
  • sloc: php: 875; makefile: 12; sh: 5
file content (23 lines) | stat: -rw-r--r-- 596 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: =?utf-8?q?David_Pr=C3=A9vot?= <david@tilapin.org>
Date: Sat, 23 May 2015 18:23:04 -0400
Subject: Load psr/log directly instead of relying on Composer

Work around the lack of proper autoload.php from Composer.

Forwarded: not-needed
---
 lib/Analog.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/Analog.php b/lib/Analog.php
index 7f083f8..b73b01f 100644
--- a/lib/Analog.php
+++ b/lib/Analog.php
@@ -1,5 +1,7 @@
 <?php
 
+require_once 'Psr/Log/autoload.php';
+
 /**
  * Register a very simple autoloader for the pre-built handlers
  * based on the current working directory.