Browse Source

Error handler; sp model class

tags/0.1.0
Robin Thoni 8 years ago
parent
commit
24ab96bf1c
3 changed files with 20 additions and 0 deletions
  1. 1
    0
      src/Utils/LuHandler.php
  2. 11
    0
      src/Utils/LuLog.php
  3. 8
    0
      src/Utils/LuSpModel.php

+ 1
- 0
src/Utils/LuHandler.php View File

10
 
10
 
11
     public function render($request, Exception $e)
11
     public function render($request, Exception $e)
12
     {
12
     {
13
+        LuLog::log($e);
13
         $data = "Internal error";
14
         $data = "Internal error";
14
         $code = 500;
15
         $code = 500;
15
 
16
 

+ 11
- 0
src/Utils/LuLog.php View File

1
+<?php
2
+
3
+namespace Luticate\Utils;
4
+
5
+class LuLog {
6
+
7
+    public static function log($data)
8
+    {
9
+
10
+    }
11
+}

+ 8
- 0
src/Utils/LuSpModel.php View File

1
+<?php
2
+
3
+namespace Luticate\Utils;
4
+
5
+abstract class LuSpModel
6
+{
7
+
8
+}

Loading…
Cancel
Save