Completed
Pull Request — master (#168)
by Daniel
21:48
created

ExtensionConfiguration   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 3
dl 0
loc 19
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A base() 0 3 1
A get() 0 3 1
1
<?php
2
namespace Codappix\SearchCore\Compatibility;
3
4
use Codappix\SearchCore\Bootstrap;
5
6
class ExtensionConfiguration implements ExtensionConfigurationInterface
7
{
8
    /**
9
     * @return object|\TYPO3\CMS\Core\Configuration\ExtensionConfiguration
10
     */
11
    private function base()
12
    {
13
        return Bootstrap::getObjectManager()->get(\TYPO3\CMS\Core\Configuration\ExtensionConfiguration::class);
14
    }
15
16
    /**
17
     * @param $extensionKey
18
     * @return mixed
19
     * @throws \TYPO3\CMS\Core\Configuration\Exception\ExtensionConfigurationExtensionNotConfiguredException
20
     * @throws \TYPO3\CMS\Core\Configuration\Exception\ExtensionConfigurationPathDoesNotExistException
21
     */
22
    public function get($extensionKey)
23
    {
24
        return $this->base()->get($extensionKey);
25
    }
26
}
27