eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\ConfigParser::mapConfig PHP Method

mapConfig() public method

public mapConfig ( array &$scopeSettings, $currentScope, eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\SiteAccessAware\ContextualizerInterface $contextualizer )
$scopeSettings array
$contextualizer eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\SiteAccessAware\ContextualizerInterface
    public function mapConfig(array &$scopeSettings, $currentScope, ContextualizerInterface $contextualizer)
    {
        foreach ($this->configParsers as $parser) {
            $parser->mapConfig($scopeSettings, $currentScope, $contextualizer);
        }
    }

Usage Example

 public function testMapConfig()
 {
     $parsers = array($this->getMock('eZ\\Bundle\\EzPublishCoreBundle\\DependencyInjection\\Configuration\\ParserInterface'), $this->getMock('eZ\\Bundle\\EzPublishCoreBundle\\DependencyInjection\\Configuration\\ParserInterface'));
     $configParser = new ConfigParser($parsers);
     $scopeSettings = array('foo' => 'bar', 'some' => 'thing');
     $currentScope = 'the_current_scope';
     $contextualizer = $this->getMock('eZ\\Bundle\\EzPublishCoreBundle\\DependencyInjection\\Configuration\\SiteAccessAware\\ContextualizerInterface');
     foreach ($parsers as $parser) {
         /** @var \PHPUnit_Framework_MockObject_MockObject $parser */
         $parser->expects($this->once())->method('mapConfig')->with($scopeSettings, $currentScope, $contextualizer);
     }
     $configParser->mapConfig($scopeSettings, $currentScope, $contextualizer);
 }