|
@@ 115-122 (lines=8) @@
|
| 112 |
|
* Boolean : false if no render to use |
| 113 |
|
* Array : Infos from config |
| 114 |
|
*/ |
| 115 |
|
public static function getErrorRender() |
| 116 |
|
{ |
| 117 |
|
$calledClass = get_called_class(); |
| 118 |
|
$app = $calledClass::getApp(); |
| 119 |
|
$renderFcts = $app->getConfig('errorRenderFct'); |
| 120 |
|
|
| 121 |
|
return self::defineRenderToUse($renderFcts); |
| 122 |
|
} |
| 123 |
|
|
| 124 |
|
/** |
| 125 |
|
* get the exception render from config for cli or default |
|
@@ 131-138 (lines=8) @@
|
| 128 |
|
* Boolean : false if no render to use |
| 129 |
|
* Array : Infos from config |
| 130 |
|
*/ |
| 131 |
|
public static function getExceptionRender() |
| 132 |
|
{ |
| 133 |
|
$calledClass = get_called_class(); |
| 134 |
|
$app = $calledClass::getApp(); |
| 135 |
|
$renderFcts = $app->getConfig('exceptionRenderFct'); |
| 136 |
|
|
| 137 |
|
return self::defineRenderToUse($renderFcts); |
| 138 |
|
} |
| 139 |
|
|
| 140 |
|
/** |
| 141 |
|
* Find the render to use with the config |