Skip to content

Commit 8c83971

Browse files
committed
Fix config boot level
1 parent 480e470 commit 8c83971

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Application/Application.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -369,16 +369,16 @@ public function bind(Loader $config): void
369369
{
370370
$this->config = $config;
371371

372-
if (is_string($config['app']['root'])) {
373-
$this->router->setBaseRoute($config['app']['root']);
374-
}
372+
$this->boot();
375373

376374
// We activate the auto csrf switcher
377375
$this->router->setAutoCsrf((bool)($config['app']['auto_csrf'] ?? false));
378376

379377
$this->capsule->instance('config', $config);
380378

381-
$this->boot();
379+
if (is_string($config['app']['root'])) {
380+
$this->router->setBaseRoute($config['app']['root']);
381+
}
382382
}
383383

384384
/**

0 commit comments

Comments
 (0)