We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 480e470 + 144a798 commit df41535Copy full SHA for df41535
src/Application/Application.php
@@ -369,16 +369,16 @@ public function bind(Loader $config): void
369
{
370
$this->config = $config;
371
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
379
$this->capsule->instance('config', $config);
380
381
$this->boot();
+
+ // We activate the auto csrf switcher
+ $this->router->setAutoCsrf((bool) ($config['app']['auto_csrf'] ?? false));
+ if (is_string($config['app']['root'])) {
+ $this->router->setBaseRoute($config['app']['root']);
+ }
382
}
383
384
/**
0 commit comments