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 89480a1 commit 985794eCopy full SHA for 985794e
1 file changed
src/Bridges/ApplicationDI/RoutingExtension.php
@@ -82,6 +82,13 @@ public function beforeCompile()
82
new Definitions\Statement(Nette\Bridges\ApplicationTracy\RoutingPanel::class),
83
]);
84
}
85
+
86
+ if (!$builder->getByType(Nette\Routing\Router::class)) {
87
+ $builder->addDefinition($this->prefix('router'))
88
+ ->setType(Nette\Routing\Router::class)
89
+ ->setFactory(Nette\Routing\SimpleRouter::class);
90
+ $builder->addAlias('router', $this->prefix('router'));
91
+ }
92
93
94
0 commit comments