Passed
Push — master ( 322a58...f1cf97 )
by Robbie
03:11
created

AbstractConfigCommand::getStaticConfig()   B

Complexity

Conditions 6
Paths 7

Size

Total Lines 19
Code Lines 12

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 19
rs 8.8571
cc 6
eloc 12
nc 7
nop 0
1
<?php
2
3
namespace SilverLeague\Console\Command\Config;
4
5
use SilverLeague\Console\Command\SilverStripeCommand;
6
use SilverStripe\Config\Collections\ConfigCollectionInterface;
7
use SilverStripe\Core\ClassInfo;
8
use SilverStripe\Core\Config\ConfigLoader;
9
use SilverStripe\Core\Object;
10
11
/**
12
 * Provide base functionality for retrieving configuration from SilverStripe
13
 *
14
 * @package silverstripe-console
15
 * @author  Robbie Averill <[email protected]>
16
 */
17
class AbstractConfigCommand extends SilverStripeCommand
18
{
19
    /**
20
     * Get the SilverStripe Config manifest/collection interface
21
     *
22
     * @return ConfigCollectionInterface
23
     */
24
    public function getConfig()
25
    {
26
        return ConfigLoader::instance()->getManifest();
27
    }
28
}
29