Skip to content

Commit

Permalink
Update to HTMLPurifier v4.17 to remove spl_autoload_call use
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebauman committed Nov 28, 2023
1 parent 2662c8b commit c245c33
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"license": "MIT",
"require": {
"php": ">=7.4",
"ezyang/htmlpurifier": "^4.9.0",
"ezyang/htmlpurifier": "^4.17",
"illuminate/contracts": "~7.0|~8.0|~9.0|~10.0",
"illuminate/support": "~7.0|~8.0|~9.0|~10.0"
},
Expand Down
6 changes: 0 additions & 6 deletions src/PurifyServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@ public function register()

$this->app->singleton('purify', function ($app) {
if ($cache = config('purify.serializer.cache')) {
// We must autoload the cache manually due to an issue
// with the root HTMLPurifier repository. Once this
// issue has been resolved, we may remove this.
// See: https://github.com/ezyang/htmlpurifier/pull/364
spl_autoload_call($cache);

HTMLPurifier_DefinitionCacheFactory::instance()->register($cache, $cache);
}

Expand Down

0 comments on commit c245c33

Please sign in to comment.