ConfigResolverInterface
Interface for config resolvers.
Classes implementing this interface will help you get settings for a specific scope. In Ibexa context, this is useful to get a setting for a specific siteaccess for example.
The idea is to check the different scopes available for a given namespace to find the appropriate parameter.
To work, the dynamic setting must comply internally to the following name format : "
Methods¶
                 getDefaultNamespace()
            ¶
getDefaultNamespace()
            ¶
    
        Returns the current default namespace.
|  |  | 
Return values
string
                 getParameter()
            ¶
getParameter()
            ¶
    
        Returns value for $paramName, in $namespace.
|  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $paramName | string | - | The parameter name, without $prefix and the current scope (i.e. siteaccess name). | 
| $namespace | string | null | Namespace for the parameter name. If null, the default namespace should be used. | 
| $scope | string | null | The scope you need $paramName value for. | 
                 hasParameter()
            ¶
hasParameter()
            ¶
    
        Checks if $paramName exists in $namespace.
|  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $paramName | string | - | The parameter name, without $prefix and the current scope (i.e. siteaccess name). | 
| $namespace | string | null | Namespace for the parameter name. If null, the default namespace should be used. | 
| $scope | string | null | The scope you need $paramName value for. | 
Return values
bool
                 setDefaultNamespace()
            ¶
setDefaultNamespace()
            ¶
    
        Changes the default namespace to look parameter into.
|  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $defaultNamespace | string | - | - |