public function __construct(Engine $engine, array $params, FilterExecutor $filters, array $providers, $name)
{
$this->engine = $engine;
$this->params = $params;
$this->filters = $filters;
$this->name = $name;
$this->global = (object) $providers;
foreach ($this->blocks as $nm => $method) {
$this->blockQueue[$nm][] = [$this, $method];
}
$this->params['template'] = $this;
// back compatibility
}