diff options
author | Máté Bartus <mate.bartus@gmail.com> | 2017-09-09 17:20:20 +0200 |
---|---|---|
committer | Máté Bartus <mate.bartus@gmail.com> | 2017-09-09 17:20:20 +0200 |
commit | 954af4f18009740bdf3f15b6a2518162e0638c05 (patch) | |
tree | 8e1b278a968d1021de4ee8e21b55c77bcdd48021 | |
parent | 9ebe4da72513ad6f96fb0504b818780e42cfb09a (diff) | |
parent | 7f45062466b201e607db93e7f523f2a6d7057649 (diff) | |
download | forums-954af4f18009740bdf3f15b6a2518162e0638c05.tar forums-954af4f18009740bdf3f15b6a2518162e0638c05.tar.gz forums-954af4f18009740bdf3f15b6a2518162e0638c05.tar.bz2 forums-954af4f18009740bdf3f15b6a2518162e0638c05.tar.xz forums-954af4f18009740bdf3f15b6a2518162e0638c05.zip |
Merge pull request #4876 from JoshyPHP/ticket/15290
[ticket/15290] Add core.text_formatter_s9e_configure_finalize event
-rw-r--r-- | phpBB/phpbb/textformatter/s9e/factory.php | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/phpBB/phpbb/textformatter/s9e/factory.php b/phpBB/phpbb/textformatter/s9e/factory.php index 238483ab58..d5ad8283d9 100644 --- a/phpBB/phpbb/textformatter/s9e/factory.php +++ b/phpBB/phpbb/textformatter/s9e/factory.php @@ -390,7 +390,18 @@ class factory implements \phpbb\textformatter\cache_interface unset($configurator->tags['censor:tag']); } - $objects = $configurator->finalize(); + $objects = $configurator->finalize(); + + /** + * Access the objects returned by finalize() before they are saved to cache + * + * @event core.text_formatter_s9e_configure_finalize + * @var array objects Array containing a "parser" object, a "renderer" object and optionally a "js" string + * @since 3.2.2-RC1 + */ + $vars = array('objects'); + extract($this->dispatcher->trigger_event('core.text_formatter_s9e_configure_finalize', compact($vars))); + $parser = $objects['parser']; $renderer = $objects['renderer']; |