We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a803720 commit bef28f4Copy full SHA for bef28f4
src/Router.php
@@ -16,7 +16,6 @@
16
use MiladRahimi\PhpRouter\Services\Publisher;
17
use Psr\Container\ContainerInterface;
18
use Laminas\Diactoros\ServerRequestFactory;
19
-use RuntimeException;
20
21
class Router
22
{
@@ -99,11 +98,7 @@ public static function create(): self
99
98
$container->singleton(Repository::class, new Repository());
100
$container->singleton(Publisher::class, HttpPublisher::class);
101
102
- try {
103
- return $container->instantiate(Router::class);
104
- } catch (ContainerException $e) {
105
- throw new RuntimeException($e->getMessage(), $e->getCode(), $e);
106
- }
+ return $container->instantiate(Router::class);
107
}
108
109
/**
0 commit comments