Interface

eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\SiteAccessAware\DynamicSettingParserInterface

interface DynamicSettingParserInterface

Interface for dynamic setting parsers.

A dynamic setting is a string representation of a ConfigResolver::getParameter() call. It allows usage of the ConfigResolver from e.g. configuration files.

Supported syntax for dynamic settings: $[;[;]]$

The following will work : $myparam$ (using default namespace, e.g. ezsettings, with current scope). $myparam;foo$ (using "foo" as namespace, in current scope). $myparam;foo;somesiteaccess$ (using "foo" as namespace, forcing "some_siteaccess scope").

$myparam$ is the equivalent of $configResolver->getParameter( 'myparam' ); $myparam;foo$ is the equivalent of $configResolver->getParameter( 'myparam', 'foo' ); $myparam;foo;somesiteaccess$ is the equivalent of $configResolver->getParameter( 'myparam', 'foo', 'somesiteaccess' );

Constants

BOUNDARY_DELIMITER

INNER_DELIMITER

Methods

bool isDynamicSetting(string $setting)

Checks if $setting is considered to be dynamic.

array parseDynamicSetting(string $setting)

Parses $setting and returns a hash of corresponding arguments.

Details

at line 40
public bool isDynamicSetting(string $setting)

Checks if $setting is considered to be dynamic.

i.e. if $setting follows the expected format.

Parameters

string $setting

Return Value

bool

at line 54
public array parseDynamicSetting(string $setting)

Parses $setting and returns a hash of corresponding arguments.

Returned hash will contain the following entries:.

Parameters

string $setting

Return Value

array