Skip to content

Commit 43eefa3

Browse files
authored
Update ConfigProvider.php
1 parent 6dc6025 commit 43eefa3

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/ConfigProvider.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ class ConfigProvider
1414

1515
public function __invoke(): array
1616
{
17-
return [self::dependencies => array_filter($this->getDependencies(), static fn($v) => $v != null)];
17+
$array = [self::dependencies => array_filter(
18+
$this->getDependencies(), static fn($v) => $v != null)
19+
];
20+
21+
return ($cfg = $this->getConfig()) !== [] ? array_merge($array, $cfg) : $array;
1822
}
1923

2024
protected function getDependencies(): array
@@ -28,6 +32,11 @@ protected function getDependencies(): array
2832
self::services => $this->getServices(),
2933
];
3034
}
35+
36+
protected function getConfig(): array
37+
{
38+
return [];
39+
}
3140

3241
/**
3342
* An associative array that maps a service name to a factory class name, or any callable.

0 commit comments

Comments
 (0)