1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-31 11:39:37 +02:00

Merge pull request #4876 from JoshyPHP/ticket/15290

[ticket/15290] Add core.text_formatter_s9e_configure_finalize event
This commit is contained in:
Máté Bartus 2017-09-09 17:20:20 +02:00
commit 954af4f180

View File

@ -391,6 +391,17 @@ class factory implements \phpbb\textformatter\cache_interface
}
$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'];