1
0
mirror of https://github.com/flarum/core.git synced 2025-10-18 18:26:07 +02:00

Allow extensions to modify text/XML prior to formatting

This commit is contained in:
Toby Zerner
2015-12-30 15:27:34 +10:30
parent bf87518161
commit 5a4e3b09cf
3 changed files with 21 additions and 9 deletions

View File

@@ -24,13 +24,20 @@ class ConfigureFormatterRenderer
*/
public $context;
/**
* @var string
*/
public $xml;
/**
* @param Renderer $renderer
* @param mixed $context
* @param string $xml
*/
public function __construct(Renderer $renderer, $context)
public function __construct(Renderer $renderer, $context, &$xml)
{
$this->renderer = $renderer;
$this->context = $context;
$this->xml = &$xml;
}
}