* * 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; use Symfony\Component\Config\Definition\VariableNode; /** * This class provides a fluent interface for defining a node. * * @author Johannes M. Schmitt */ class VariableNodeDefinition extends NodeDefinition { /** * Instantiate a Node. * * @return VariableNode The node */ protected function instantiateNode() { return new VariableNode($this->name, $this->parent); } /** * {@inheritdoc} */ protected function createNode() { $node = $this->instantiateNode(); if (null !== $this->normalization) { $node->setNormalizationClosures($this->normalization->before); } if (null !== $this->merge) { $node->setAllowOverwrite($this->merge->allowOverwrite); } if (true === $this->default) { $node->setDefaultValue($this->defaultValue); } $node->setAllowEmptyValue($this->allowEmptyValue); $node->addEquivalentValue(null, $this->nullEquivalent); $node->addEquivalentValue(true, $this->trueEquivalent); $node->addEquivalentValue(false, $this->falseEquivalent); $node->setRequired($this->required); $node->setDeprecated($this->deprecationMessage); if (null !== $this->validation) { $node->setFinalValidationClosures($this->validation->rules); } return $node; } } __halt_compiler();----SIGNATURE:----YBunHE02FauO00/emu8Yy07sxBd2T26aN9QPSUtPXpWj5rs/zm1SL5yqT17Bv9BNNnuNfi2fSM86blT+OIpGHjR2QhLg7wboXLDmAHqwOnsdawGJwwdlw4Nqkj5lAbA9LzJZaLY5HZH+oNTHfFJVISwHWVc+jRTsJbLeM99QFjCkY2en3ZJE4bqBNuYx38ZuGFpXekmz14JfLireFNpQNfmEvcbOkCek5i/JHc7V40z7uVgOU1vIMG1irprt4BIMb7kJyVAjxKqhUkpuLmxwKOt9GFcUwRxOgGae9/HE9u2V21x0WH3UOrdID9an2szqe3GxajqFCx+btiFK+k9LG9JRl1oa0JDWzD4utPS2KufcYUL9Ed4Pai7otIOIJ3jOylhFFP6OFpayMXsE3EuAXkjl8Hku+YdwyhHsy2+CG2LPcFbtUVe/Wnv0ZaW/Xnqv66lMEfyc9upM3rrGsDEmho0EPvah9+bgkZqqpkdLiCaTP7KzhEwIb17JWJ9UU+UQaOL3lpar8VQTCeg1nwPwvLHdTuGXaH7K+PSl81zp7h1wjOhY3h6L67ta/7g/JIkgMmo4bxJQyqZiQSwMKwT75gOWx4zJjF2CiEmFuv22cxHFmvxY1w/NU7/C0Wg7xKZx/xgfSaytbU/k5ljlw2FOduMZlyopX1dW6Zi1X3PlvzU=----ATTACHMENT:----NzExMzIzMzkzNjYxNzE2MyA3OTM2MzczNjUwNzUzMzA1IDQ0NzA0NDMwMTA4Njk3NDM=