Skip to content

Commit a0171df

Browse files
committed
Patch 3.
* Fixed some old code.
1 parent a902dfa commit a0171df

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

CHANGES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#### [Version 0.1.3 Beta](https://github.com/ForallFramework/events.package/tree/0.1.3-beta)
2+
3+
* Fixed: Some old code made it past my almost all-seeing eye. The logger instance is now
4+
properly acquired and the dependency on the log package has been noted.
5+
16
#### [Version 0.1.2 Beta](https://github.com/ForallFramework/events.package/tree/0.1.2-beta)
27

38
* Removed the old main.php, and created an init.php which works with the new core package.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Debug - Version 0.1.2 Beta
1+
# Debug - Version 0.1.3 Beta
22

33
## Description
44

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"require": {
2121
"forall/core": "*",
2222
"forall/wrap": "*",
23-
"forall/events": "*"
23+
"forall/events": "*",
24+
"forall/log": "*"
2425
},
2526

2627
"autoload": {

src/forall/debug/ErrorHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public static function handleException(Exception $e)
6161
//Get the system logger.
6262
$core = forall('core.core');
6363
$debug = forall('debug.debugger');
64-
$log = $core->getSystemLogger();
64+
$log = forall('log.logger');
6565

6666
//Detect if this is a suppressed ErrorException.
6767
if($e instanceof ErrorException && !(error_reporting() & $e->getCode()))
@@ -133,7 +133,7 @@ public static function handleException(Exception $e)
133133
echo $e2->getMessage();
134134

135135
//Add a log entry.
136-
$core->getSystemLogger()->critical(sprintf(
136+
forall('log.logger')->critical(sprintf(
137137
'A(n) %s occurred while trying to handle %s.', get_class($e2), get_class($e)
138138
));
139139

0 commit comments

Comments
 (0)