1
0
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:
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 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;
}
}