* * 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:----LcWehmFqZ58U7l/LwHgiz2ksUVO+zhwI1cJcf8stgBgMy3+vfcw9XKK+UNPQF+o6+UwVIZsOhEERlUgoiEuTSzTTQ5/6vjTNj6gh7GF0PKXOCWXhMTKKSPiiFnPejM4RUFvgELvpHsuqQe3xR3Um0YpL2UqU5azE0CwCiv8ooavMduvd5rsw8A3M+bjAa7gEAc5jpbKMNQYeFFZYFPi1z4uUIqJA8GFxTXMSUKKNYzilnsr8e0a2SjFP+Ua69XtWLQFrQiIFc3qNmkLoTOTirAW0GYWlda786mLba/8IDOlJSoEITdkP9wxZ0WhteRkZQm8e0g2Fu9m9RAn3JV4ADdoW4gEoexS/etyk1Q5FCEEqVt9WkkJt8tXDVlirhP4SnKbg6oLylUcEl/GSGIzBTknxaUb1gZKALknzse1hX93yuVjFBKrngzdPS4+4XjyemSbTnp1bUsLHevDbeHtpLTByJM7AmoRfGKt91UJ/EsB9C2zM5XOS+bEPOtkxBvtOBID2ztvARMrJ+GLyz2GYTjmJLnYFUtUJ6Un5168CfxNRUeXMjS8fMvLlnJbCm9tD9+J7gWUjVhipzv25ofuB6/l4H2GNuoQHfmN/H/j+INwHA9bMruuoOqhGnH9WlEoPJS+qKpi5mPKUu90lstvvdMEgg9M4d6szJgMFjR5IfNM=----ATTACHMENT:----MTI2MjA5Mjg0ODc1NTIzNiA2MzkzOTk1NTg1ODEwMTgyIDk2ODI1MTY2MjYyODQ1MzU=