public function __construct(\MtHaml\Environment $env = null) { if (empty($env->currentMoreEnv)) { parent::__construct(); } else { $this->currentMoreEnv = $env->currentMoreEnv; $snipcaller = $this->currentMoreEnv['snipcallerNode']; if (empty($snipcaller)) { parent::__construct(); } else { $this->parent = new SecondRoot($snipcaller); } } $this->env = $env; }
public function __construct(\MtHaml\Environment $env = null) { parent::__construct(); $this->env = $env; }