Skip to content

Commit c8edf62

Browse files
committed
Merge existing definitions
1 parent 42d97cb commit c8edf62

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/AppConfig.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ public function getConfig(): array
4444
$config['components']['cache'] = $this->getCache();
4545
$config['components']['queue'] = $this->getQueue();
4646
$config['components']['assetManager'] = $this->getAssetManager();
47-
$config['container']['definitions'] = $this->getDefinitions();
47+
$config['container']['definitions'] = array_merge(
48+
$config['container']['definitions'] ?? [],
49+
$this->getDefinitions()
50+
);
4851

4952
return $config;
5053
}

0 commit comments

Comments
 (0)