Skip to content

Commit df41535

Browse files
authored
Merge pull request #346 from bowphp/refactor/code-base
Fix config boot level
2 parents 480e470 + 144a798 commit df41535

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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)