Exception handler make use of Factory make

This commit is contained in:
Maarten 2020-02-27 23:10:20 +01:00
parent 57ec41dec1
commit f907f2fb3a

View file

@ -24,7 +24,7 @@ class ExceptionHandler {
public static function make($abstract = null, $message = null)
{
if(is_string($abstract)) {
$abstract = new $abstract($message);
$abstract = app()->make($abstract, $message);
}
if(is_subclass_of($abstract, 'Exception')) {