public function resolveEnv(string $template, array $variables = null)
    {
        if (is_null($variables)) {
            $variables = [];
        }
        
        $env = $this->getAutoBindings($template);
        // explicit-bound variables precedes to auto-bound variables.
        return array_merge($env, $variables);
    }