Exception handler make use of Factory make
This commit is contained in:
parent
57ec41dec1
commit
f907f2fb3a
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ class ExceptionHandler {
|
||||||
public static function make($abstract = null, $message = null)
|
public static function make($abstract = null, $message = null)
|
||||||
{
|
{
|
||||||
if(is_string($abstract)) {
|
if(is_string($abstract)) {
|
||||||
$abstract = new $abstract($message);
|
$abstract = app()->make($abstract, $message);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(is_subclass_of($abstract, 'Exception')) {
|
if(is_subclass_of($abstract, 'Exception')) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue