Completed
Push — EZP-31046-chain-config-resolve... ( cbbd6c...51eaf2 )
by
unknown
14:38
created

DefaultScopeConfigResolver::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * @copyright Copyright (C) eZ Systems AS. All rights reserved.
5
 * @license For full copyright and license information view LICENSE file distributed with this source code.
6
 */
7
declare(strict_types=1);
8
9
namespace eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\ConfigResolver;
10
11
class DefaultScopeConfigResolver extends ContainerConfigResolver
12
{
13
    private const SCOPE_NAME = 'default';
14
15
    public function __construct(string $defaultNamespace)
16
    {
17
        parent::__construct(self::SCOPE_NAME, $defaultNamespace);
18
    }
19
20
    public function hasParameter(string $paramName, ?string $namespace = null, ?string $scope = null): bool
21
    {
22
        return parent::hasParameter($paramName, $namespace, self::SCOPE_NAME);
23
    }
24
25
    public function getParameter(string $paramName, ?string $namespace = null, ?string $scope = null)
26
    {
27
        return parent::getParameter($paramName, $namespace, self::SCOPE_NAME);
28
    }
29
}