mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-08-13 01:23:59 +02:00
[1.7.0] Add DefinitionCache decorators, implement Memory decorator
- Move serialization responsibility to Config - Create DefinitionCacheFactory - Implement Null definition cache git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1117 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
@@ -40,6 +40,10 @@ if ( is_string($GLOBALS['HTMLPurifierTest']['PEAR']) ) {
|
||||
// initialize and load HTML Purifier
|
||||
require_once '../library/HTMLPurifier.auto.php';
|
||||
|
||||
// setup special DefinitionCacheFactory decorator
|
||||
$factory =& HTMLPurifier_DefinitionCacheFactory::instance();
|
||||
$factory->addDecorator('Memory'); // since we deal with a lot of config objects
|
||||
|
||||
// load tests
|
||||
$test_files = array();
|
||||
require 'test_files.php'; // populates $test_files array
|
||||
|
Reference in New Issue
Block a user