Skip to content

Commit 5063159

Browse files
Merge pull request #159 from radiate-framework/bugfix/router
moved the router dispatch into the app boot method
2 parents 23c9677 + 9c70237 commit 5063159

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/Foundation/Application.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,10 @@ public function boot()
368368
$this->runRequestThroughStack($request);
369369

370370
$this->bootProviders();
371+
372+
if ($this->resolved('router')) {
373+
$this['router']->dispatch($request);
374+
}
371375
}
372376

373377
/**

src/Foundation/Providers/RouteServiceProvider.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,5 @@ public function map()
2424
public function boot()
2525
{
2626
$this->map();
27-
28-
$this->app['router']->dispatch($this->app['request']);
2927
}
3028
}

0 commit comments

Comments
 (0)