PHP Class eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\ChainConfigResolver

Inheritance: implements eZ\Publish\Core\MVC\ConfigResolverInterface
Show file Open project: ezsystems/ezpublish-kernel Class Usage Examples

Protected Properties

Property Type Description
$resolvers eZ\Publish\Core\MVC\ConfigResolverInterface[]
$sortedResolvers eZ\Publish\Core\MVC\ConfigResolverInterface[]

Public Methods

Method Description
addResolver ( eZ\Publish\Core\MVC\ConfigResolverInterface $resolver, integer $priority ) Registers $mapper as a valid mapper to be used in the configuration mapping chain.
getAllResolvers ( ) : eZ\Publish\Core\MVC\ConfigResolverInterface[]
getDefaultNamespace ( ) Not supported.
getParameter ( string $paramName, string $namespace = null, string $scope = null ) : mixed Returns value for $paramName, in $namespace.
hasParameter ( string $paramName, string $namespace = null, string $scope = null ) : boolean Checks if $paramName exists in $namespace.
setDefaultNamespace ( string $defaultNamespace ) Changes the default namespace to look parameter into.

Protected Methods

Method Description
sortResolvers ( ) : eZ\Publish\Core\MVC\ConfigResolverInterface[] Sort the registered mappers by priority.

Method Details

addResolver() public method

When this mapper will be called in the chain depends on $priority. The highest $priority is, the earliest the router will be called.
public addResolver ( eZ\Publish\Core\MVC\ConfigResolverInterface $resolver, integer $priority )
$resolver eZ\Publish\Core\MVC\ConfigResolverInterface
$priority integer

getAllResolvers() public method

public getAllResolvers ( ) : eZ\Publish\Core\MVC\ConfigResolverInterface[]
return eZ\Publish\Core\MVC\ConfigResolverInterface[]

getDefaultNamespace() public method

Not supported.
public getDefaultNamespace ( )

getParameter() public method

Returns value for $paramName, in $namespace.
public getParameter ( string $paramName, string $namespace = null, string $scope = null ) : mixed
$paramName string The parameter name, without $prefix and the current scope (i.e. siteaccess name).
$namespace string Namespace for the parameter name. If null, the default namespace should be used.
$scope string The scope you need $paramName value for.
return mixed

hasParameter() public method

Checks if $paramName exists in $namespace.
public hasParameter ( string $paramName, string $namespace = null, string $scope = null ) : boolean
$paramName string
$namespace string If null, the default namespace should be used.
$scope string The scope you need $paramName value for.
return boolean

setDefaultNamespace() public method

Changes the default namespace to look parameter into.
public setDefaultNamespace ( string $defaultNamespace )
$defaultNamespace string

sortResolvers() protected method

The highest priority number is the highest priority (reverse sorting).
protected sortResolvers ( ) : eZ\Publish\Core\MVC\ConfigResolverInterface[]
return eZ\Publish\Core\MVC\ConfigResolverInterface[]

Property Details

$resolvers protected property

protected ConfigResolverInterface[],eZ\Publish\Core\MVC $resolvers
return eZ\Publish\Core\MVC\ConfigResolverInterface[]

$sortedResolvers protected property

protected ConfigResolverInterface[],eZ\Publish\Core\MVC $sortedResolvers
return eZ\Publish\Core\MVC\ConfigResolverInterface[]