caxy / php-htmldiff

A library for comparing two HTML files/snippets and highlighting the differences using simple HTML. Includes support for comparing complex lists and tables
http://php-htmldiff.caxy.com
GNU General Public License v2.0
202 stars 51 forks source link

Config object not properly used when using the HtmlDiffBundle service #51

Closed SavageTiger closed 8 years ago

SavageTiger commented 8 years ago

Hi,

I had some issues today with the cache folder location of the html purifier. After some digging around it turns out that the constructor in HtmlDiff/HtmlDiff sets the config after the AbstractDiff is created. However the purifier is initialized inside the AbstractDiff so the cache path (from the config object) is not properly set at the time of execution.