mirror of
https://github.com/flarum/core.git
synced 2025-10-14 00:15:51 +02:00
Allow extensions to modify text/XML prior to formatting
This commit is contained in:
@@ -24,13 +24,20 @@ class ConfigureFormatterParser
|
||||
*/
|
||||
public $context;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $text;
|
||||
|
||||
/**
|
||||
* @param Parser $parser
|
||||
* @param mixed $context
|
||||
* @param string $text
|
||||
*/
|
||||
public function __construct(Parser $parser, $context)
|
||||
public function __construct(Parser $parser, $context, &$text)
|
||||
{
|
||||
$this->parser = $parser;
|
||||
$this->context = $context;
|
||||
$this->text = &$text;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user