1
0
mirror of https://github.com/flarum/core.git synced 2025-08-06 08:27:42 +02:00

Apply fixes from StyleCI

[ci skip] [skip ci]
This commit is contained in:
Alexander Skvortsov
2021-09-17 18:10:26 +00:00
committed by StyleCI Bot
parent 5ebc101fd5
commit 766e3390d7
2 changed files with 2 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ class ExtensionServiceProvider extends AbstractServiceProvider
$this->container['flarum']->booting(function () { $this->container['flarum']->booting(function () {
/** @var Config */ /** @var Config */
$config = $this->container->make(Config::class); $config = $this->container->make(Config::class);
if ($config->bootExtensions()) { if ($config->bootExtensions()) {
$this->container->make('flarum.extensions')->extend($this->container); $this->container->make('flarum.extensions')->extend($this->container);
} }

View File

@@ -41,7 +41,7 @@ class Config implements ArrayAccess
{ {
return $this->data['offline'] ?? false; return $this->data['offline'] ?? false;
} }
public function bootExtensions(): bool public function bootExtensions(): bool
{ {
return $this->data['boot_extensions'] ?? true; return $this->data['boot_extensions'] ?? true;