Skip to content

Commit a563a35

Browse files
Add custom data to the JSON file
When writing the hook file, the config-custom-data was missing. Issue: #278
1 parent 68fe4c3 commit a563a35

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Config.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,9 @@ public function getJsonData(): array
408408
if (!empty($this->plugins)) {
409409
$data['config']['plugins'] = $this->getPluginsJsonData();
410410
}
411+
if (!empty($this->custom)) {
412+
$data['config']['custom'] = $this->custom;
413+
}
411414
foreach (Hooks::getValidHooks() as $hook => $value) {
412415
$data[$hook] = $this->hooks[$hook]->getJsonData();
413416
}

0 commit comments

Comments
 (0)