eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\Suggestion\Collector\SuggestionCollectorInterface::addSuggestion PHP Method

addSuggestion() public method

Adds a config suggestion to the list.
public addSuggestion ( ConfigSuggestion $suggestion )
$suggestion eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\Suggestion\ConfigSuggestion
    public function addSuggestion(ConfigSuggestion $suggestion);

Usage Example

示例#1
0
 public function mapConfig(array &$scopeSettings, $currentScope, ContextualizerInterface $contextualizer)
 {
     if (isset($scopeSettings['imagemagick'])) {
         $suggestion = new ConfigSuggestion('"imagemagick" settings are deprecated. Just remove them from your configuration file.');
         $this->suggestionCollector->addSuggestion($suggestion);
     }
 }
All Usage Examples Of eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\Suggestion\Collector\SuggestionCollectorInterface::addSuggestion