Passed
Push — master ( 3376db...1497f5 )
by Mike
12:25
created

DynamicModulesConfig::getCommandProviderFilter()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
4
namespace Nexus\DynamicModules;
5
6
7
use Xervice\Config\XerviceConfig;
8
use Xervice\Core\Config\AbstractConfig;
9
use Xervice\Core\CoreConfig;
10
11
class DynamicModulesConfig extends AbstractConfig
12
{
13
    const COMMAND_PROVIDER_FILTER = 'command.provider.filter';
14
15
    /**
16
     * @return string
17
     * @throws \Xervice\Config\Exception\ConfigNotFound
18
     */
19
    public function getCommandProviderFilter()
20
    {
21
        return $this->get(self::COMMAND_PROVIDER_FILTER, '*CommandProvider.php');
22
    }
23
24
    /**
25
     * @return string
26
     * @throws \Xervice\Config\Exception\ConfigNotFound
27
     */
28
    public function getApplicationPath()
29
    {
30
        return $this->get(XerviceConfig::APPLICATION_PATH);
31
    }
32
33
    /**
34
     * @return array
35
     * @throws \Xervice\Config\Exception\ConfigNotFound
36
     */
37
    public function getNamespaces() : array
38
    {
39
        return [
40
            $this->get(CoreConfig::PROJECT_LAYER_NAMESPACE)
41
        ] + $this->get(CoreConfig::ADDITIONAL_LAYER_NAMESPACES, []);
42
    }
43
}