/** * @param string $name * @param NodeParentInterface $parent */ public function __construct($name, NodeParentInterface $parent = null) { parent::__construct($name, $parent); $this->nodeBuilder = new NodeBuilder(); $this->prototype('path'); $this->beforeNormalization()->always(function ($value) { if (!is_array($value)) { $value = [$value]; } return $value; }); }
/** * @param string $name * @param NodeParentInterface $parent */ public function __construct($name, NodeParentInterface $parent = null) { parent::__construct($name, $parent); $this->nodeBuilder = new NodeBuilder(); $this->prototype('level'); }
public function __construct() { parent::__construct('twig'); $this->configureTwigOptions()->configureTwigFormatOptions()->addDefaultsIfNotSet(); }
public function __construct($name, NodeParentInterface $parent = null) { parent::__construct($name, $parent); }