Bladeren bron

Error handler; sp model class

tags/0.1.0
Robin Thoni 10 jaren geleden
bovenliggende
commit
24ab96bf1c
3 gewijzigde bestanden met toevoegingen van 20 en 0 verwijderingen
  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 Bestand weergeven

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 Bestand weergeven

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 Bestand weergeven

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

Laden…
Annuleren
Opslaan