Permalink
Browse files

updating Exception with new injection method (Log)

  • Loading branch information...
enygma committed Aug 9, 2012
1 parent 9a5288b commit bbe5d235dbe3ad4f926709abc036cab4cbaef24d
Showing with 3 additions and 2 deletions.
  1. +3 −2 Shield/Exception.php
View
@@ -11,8 +11,9 @@ class ShieldException extends \Exception
public function __construct($message, $code = 0, Exception $previous = null)
{
$di = new Di();
- $di->register(new Config($di));
- $log = new Log($di);
+ $config = new Config($di);
+ $di->register($config);
+ $log = new Log($config);
$log->log($message);

0 comments on commit bbe5d23

Please sign in to comment.