vtsykun / packeton

:package: Private, self-hosted Packagist/Composer/Satis repository with unlimited private repos.
https://demo.packeton.org
MIT License
382 stars 62 forks source link

Allow to set Cache.SerializerPath for HTMLPurifier #245

Closed Furgas closed 2 months ago

Furgas commented 3 months ago

I think there should be a configuration parameter allowing to specify cache path for HTMLPurifier. Without it HTMLPurifier wants to use vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer directory, which is kind of a weird location to be writable by web server user, under which the worker is running.

It could be injected here:

$config->set('Cache.SerializerPath', ...);