ignoreExtraKeys() public method

Those config values are simply ignored and removed from the resulting array. This should be used only in special cases where you want to send an entire configuration array through a special tree that processes only part of the array.
public ignoreExtraKeys ( boolean $remove = true ) : ArrayNodeDefinition
$remove boolean Whether to remove the extra keys
return ArrayNodeDefinition
 protected function addProvidersNode(ArrayNodeDefinition $rootNode)
 {
     $rootNode->ignoreExtraKeys()->fixXmlConfig('factory', 'factories')->children();
     foreach ($this->providers as $provider) {
         $factory = isset($this->factories[$provider]) ? $this->factories[$provider] : null;
         if ($factory === null) {
             throw new \LogicException(sprintf('No factory found for the provider "%s"', $provider));
         }
         $factoryNode = $rootNode->children()->arrayNode($provider)->isRequired();
         $factory->addConfiguration($factoryNode);
     }
     $rootNode->end();
     return $rootNode;
 }
 protected function addProviderFactoriesNode(ArrayNodeDefinition $rootNode)
 {
     $rootNode->ignoreExtraKeys()->fixXmlConfig('factory', 'factories')->children()->arrayNode('factories')->prototype('scalar')->end()->end()->end();
     return $rootNode;
 }