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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user