class NginxConfigurator implements ConfiguratorInterface (View source)

Methods

bool
hasRule(string $configuration, RuleInterface $rule)

Checks if a configuration contains a rule.

string
addRule(string $configuration, RuleInterface $rule)

Adds a rule to the configuration (if not already there).

string
removeRule(string $configuration, RuleInterface $rule)

Removes a rule from the configuration (if it's there).

Details

bool hasRule(string $configuration, RuleInterface $rule)

Checks if a configuration contains a rule.

Parameters

string $configuration

The whole configuration.

RuleInterface $rule

The rule to be checked.

Return Value

bool

See also

ConfiguratorInterface::hasRule

string addRule(string $configuration, RuleInterface $rule)

Adds a rule to the configuration (if not already there).

Parameters

string $configuration

The whole configuration.

RuleInterface $rule

The rule to be added to the configuration.

Return Value

string

Returns the modified configuration.

See also

ConfiguratorInterface::addRule

string removeRule(string $configuration, RuleInterface $rule)

Removes a rule from the configuration (if it's there).

Parameters

string $configuration

The whole configuration.

RuleInterface $rule

The rule to be removed from the configuration.

Return Value

string

Returns the modified configuration.

See also

ConfiguratorInterface::removeRule