Completed
Push — master ( 664593...a0e8ce )
by Bas
12s
created

ConfigProvider::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 9
ccs 4
cts 4
cp 1
rs 9.6666
cc 1
eloc 5
nc 1
nop 0
crap 1
1
<?php
2
3
namespace BsbFlysystem;
4
5
class ConfigProvider
6
{
7
    /**
8
     * Return configuration for this component.
9
     *
10
     * @return array
11
     */
12 2
    public function __invoke()
13
    {
14 2
        $config = (new Module())->getConfig();
15
16
        return [
17 2
            'dependencies' => $config['service_manager'],
18 2
            'bsb_flysystem' => $config['bsb_flysystem'],
19
        ];
20
    }
21
}
22