Skip to content

Commit

Permalink
Upgrade resolver:0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Chemaclass committed Apr 21, 2023
1 parent 2c118f2 commit 8b404ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"license": "MIT",
"require": {
"php": ">=8.0.2",
"gacela-project/resolver": "^0.1"
"gacela-project/resolver": "^0.2"
},
"require-dev": {
"ext-mbstring": "*",
Expand Down
2 changes: 1 addition & 1 deletion src/Router/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ private static function handleException(Handlers $handlers, Exception $exception
return $handler($exception);
}

$instance = (new InstanceCreator())->createByClassName($handler);
$instance = InstanceCreator::create($handler);

if (is_callable($instance)) {
return $instance($exception);
Expand Down

0 comments on commit 8b404ef

Please sign in to comment.