* * 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:----Tz9Lw9BptYwNWwJ8VbLCW2cY5Sp0S6kHI3ApYS9qJv7J70Z2g8qGj6ACVP6yx1DcfmNFtjpiJTFb8JKINbIz+5dx3lU2F+mTks8cnO4GJrctSYGz6ZOtsAD1hOX+Dih0dhjrsarC6/AcT5s6PiBNU+n/opJ3yNDTmP+v+LP5GRvFNVkNBXpYZBdrY1Pm3S/V8ongHdVa+L9Kzrqt4+n5muu/jelsrVXn5RB5qVxUZHhhK95qYKDTxdQaGBvpDrKJhHWV5y3jv+cOmUeL/nyQK5tm2M7Ev26wh1pPvnJwt2qlXd9tCxu9xJcpAzEE5EjdrFBLDOtMod0Q3+r2uJx3wGn0ohZ9szZ3QzOQEEmuDq+pjejEty6Th+SNMGe7gwWpFVNpP66ywLKKoz+GDfbrjkAQXNGdZizSBiDvbpIzsX00SVzssbARw7g6Pvqhqatqz9O/3yl7h/tJaKiQmBIyiQM4sr6zKF1LXnFUvIB9VLbpOPpjfJNpIUGL6OzXfoBuZO+Zsfy/0ZuAACTleF9zGhH6oB87j1vcHPmcSFKrz3XUgpDSO1OxrKkQ3uu5+dMIeyCJUntxpzvMTIauWQ9GxbvPZ2Nl8sKtACe0qNOc8Txl27pJfZ1epoJnQNU+6v/cWz59vdfDKG51kojMoAhpowwNYVMaVCfH5QeWuNJTNeM=----ATTACHMENT:----NzIwODM0MjQwNDQyNjkzMyA5NzQyNzgzNjA4OTEyNTY0IDQ5NDMzNTg3NTE3NjIxMDA=