updateOptionsHash example

$this->addExtension(new CoreExtension());
        $this->addExtension(new EscaperExtension($options['autoescape']));
        $this->addExtension(new OptimizerExtension($options['optimizations']));
    }

    /** * Enables debugging mode. */
    public function enableDebug()
    {
        $this->debug = true;
        $this->updateOptionsHash();
    }

    /** * Disables debugging mode. */
    public function disableDebug()
    {
        $this->debug = false;
        $this->updateOptionsHash();
    }

    
Home | Imprint | This part of the site doesn't use cookies.