* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Config\Definition\Builder; /** * This class builds normalization conditions. * * @author Johannes M. Schmitt */ class NormalizationBuilder { protected $node; public $before = array(); public $remappings = array(); public function __construct(NodeDefinition $node) { $this->node = $node; } /** * Registers a key to remap to its plural form. * * @param string $key The key to remap * @param string $plural The plural of the key in case of irregular plural * * @return $this */ public function remap($key, $plural = null) { $this->remappings[] = array($key, null === $plural ? $key.'s' : $plural); return $this; } /** * Registers a closure to run before the normalization or an expression builder to build it if null is provided. * * @return ExprBuilder|$this */ public function before(\Closure $closure = null) { if (null !== $closure) { $this->before[] = $closure; return $this; } return $this->before[] = new ExprBuilder($this->node); } } __halt_compiler();----SIGNATURE:----dCk9QJ/UB1oL5kWUhH4zFxk8wYLwKYCSzKzYmcPFDK/c2lN2VJKpQ3OHrn8YCldeR/wxmnKytRMHZCuocQtQetKJtCCiSLVuiCTYqTMB9rJo1ZQ/YtzjRit4Yva/r68am6dMDBfOpOpC8AA9Sllmt4o0vl8bwTfRULvsHZwTSnZMDCaUz8XEuN9UVh+vowJnhoWahFFUIdNKQvbtEZuTs0feBYM1FxWtSDDH3GmrpkCw2Rli9uIplp3Bfn4aRyZMrlP3Of7lY4UppWi24yilq+zliOnJDSFR5+tIn/TwwVuQQTgmnY7aGajaKJC+Kz8j4xssqK8bP3xoFnGY3UEWBPClmTavtk6XDroqSSoG72OyKR3ha6Unz/gPV2dV3lxg1HDSLnjrnc0+FqVQ50uoM+W0Qmd8nVnXjDp1zWkwcb+ybP8fCSnnD7YbLX4rREfGyF3ecMErMB0PcG/wmyc063Y9GOwlSNDDb0G7ciNH9zetENwfwu/rRniswNkRcAzpwZwvAG4vUDtGkVaOKQ7gYOCDW0fsfjO3YZJdHDBgxuz+piGdHvvAXvefpCiM6ezZP+2bYktAt8h63d+r+BptcHCRE6V/NZ8KSMegSK+TELhurcc6MlqCW1L0MK5I8xsTsA7nZhHT6P/PaGpylcUATp5+QUGuLLbShuxwULQE6Uw=----ATTACHMENT:----MTU5NTQzOTUyNzY3NTQ0MyAzMjE1OTQ5MDEyNjE0NDYxIDE0MDk4MDYyNTI4NDcxNzE=