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

ExtensionConfiguration::base()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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