Welcome! » Log In » Create A New Profile

integrating standalong into zendframework2

integrating standalong into zendframework2
January 16, 2015 11:52AM

I am currently integrating with a zfw2 variants and am using the standalone install and thought I'd post this as it may be useful for somebody else. I may return with questions.

I placed the files under src/vendor/HTMLPurifier and added to composer.json the following lines:

"autoload": { "classmap": ["vendor/HTMLPurifier/HTMLPurifier.standalone.php"] },

Composer generates a working classmap file.

I verified that purifier can be reference in within the runtime.

I am keen to set the cache directory in a clean way so I can use purify in a form filter. I think the right way to have done this by adding an entry for the cache path to module.config, and the configuring the filter with the cache pathname as the form is created. (this is zend internals, but again this is FYI).

I am curious if there is any efficiency to be gained by serializing the rather stable configuration, over creating and modifying the default.

Sorry, you do not have permission to post/reply in this forum.