Skip to content

Commit 4513462

Browse files
authored
[9.x] Performance: prevent routingModel reinit (#785)
1 parent 17890dd commit 4513462

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Routing/Traits/RunwayRoutes.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ trait RunwayRoutes
2424

2525
public function routingModel(): RoutingModel
2626
{
27-
$this->routingModel = new RoutingModel($this);
27+
if (! $this->routingModel) {
28+
$this->routingModel = new RoutingModel($this);
29+
}
2830

2931
return $this->routingModel;
3032
}

0 commit comments

Comments
 (0)