|
@@ 95-102 (lines=8) @@
|
| 92 |
|
* Boolean : false if no render to use |
| 93 |
|
* Array : Infos from config |
| 94 |
|
*/ |
| 95 |
|
public static function getErrorRender() |
| 96 |
|
{ |
| 97 |
|
$calledClass = get_called_class(); |
| 98 |
|
$app = $calledClass::getApp(); |
| 99 |
|
$renderFcts = $app->getConfig('errorRenderFct'); |
| 100 |
|
|
| 101 |
|
return self::defineRenderToUse($renderFcts); |
| 102 |
|
} |
| 103 |
|
|
| 104 |
|
/** |
| 105 |
|
* get the exception render from config for cli or default |
|
@@ 111-118 (lines=8) @@
|
| 108 |
|
* Boolean : false if no render to use |
| 109 |
|
* Array : Infos from config |
| 110 |
|
*/ |
| 111 |
|
public static function getExceptionRender() |
| 112 |
|
{ |
| 113 |
|
$calledClass = get_called_class(); |
| 114 |
|
$app = $calledClass::getApp(); |
| 115 |
|
$renderFcts = $app->getConfig('exceptionRenderFct'); |
| 116 |
|
|
| 117 |
|
return self::defineRenderToUse($renderFcts); |
| 118 |
|
} |
| 119 |
|
|
| 120 |
|
/** |
| 121 |
|
* Find the render to use with the config |