File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments