private function setVoltEngine(array $options = [])
    {
        $di = $this->getDI();
        $result = [];
        if (!isset($options['path'])) {
            $options['path'] = $this->getViewsDir();
        }
        // @codeCoverageIgnoreStart
        $result['compiledPath'] = function ($templatePath) use ($options) {
            return $this->getCompiledPath($templatePath, $options);
        };
        // @codeCoverageIgnoreEnd
        $result['compileAlways'] = isset($options['always']) ? $options['always'] : false;

        $engine = new Engine\Volt($this, $di);
        if (!empty($result)) {
            $engine->setOptions($result);
        }
        return $engine;
    }