Completed
Pull Request — master (#368)
by Sven
02:36
created

ConfigFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 7
rs 10
c 1
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getConfigInstance() 0 4 1
1
<?php
2
/**
3
 * (c) shopware AG <[email protected]>
4
 * For the full copyright and license information, please view the LICENSE
5
 * file that was distributed with this source code.
6
 */
7
8
namespace ShopwarePlugins\Connect\Components;
9
10
class ConfigFactory
11
{
12
    public static function getConfigInstance()
13
    {
14
        return new Config(Shopware()->Models(), Shopware()->Container()->get('shopware.plugin.cached_config_reader'));
15
    }
16
}
17