-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathexample.config.php
34 lines (33 loc) · 1.12 KB
/
example.config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
/**
* Override the DI configuration in your project config.
*
* For info on the structure of the 'instance' and the 'preference' array,
* see Laminas\Di documentation.
*/
return [
// ZendDiCompiler configuration
'zendDiCompiler' => [
// Directories that will be code-scanned
'scanDirectories' => [
// e.g. 'vendor/provider/module/src',
__DIR__ . '/../src/ZendDiCompiler/Example',
],
],
// ZF2 DI definition and instance configuration used by ZendDiCompiler
'di' => [
// Instance configuration
'instance' => [
// Type preferences for abstract classes and interfaces.
'preference' => [
'ZendDiCompiler\Example\ExampleInterface' => 'ZendDiCompiler\Example\ExampleImplementor',
],
// Add instance configuration if there are specific parameters to be used for instance creation.
'ZendDiCompiler\Example\ServiceB' => [
'parameters' => [
'diParam' => 'Hello',
]
],
],
],
];