Skip to content

Commit 144a798

Browse files
committed
Fix config boot level
1 parent 480e470 commit 144a798

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/Application/Application.php

Lines changed: 7 additions & 7 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-
}
375-
376-
// We activate the auto csrf switcher
377-
$this->router->setAutoCsrf((bool)($config['app']['auto_csrf'] ?? false));
378-
379372
$this->capsule->instance('config', $config);
380373

381374
$this->boot();
375+
376+
// We activate the auto csrf switcher
377+
$this->router->setAutoCsrf((bool) ($config['app']['auto_csrf'] ?? false));
378+
379+
if (is_string($config['app']['root'])) {
380+
$this->router->setBaseRoute($config['app']['root']);
381+
}
382382
}
383383

384384
/**

0 commit comments

Comments
 (0)