mirror of
https://github.com/flarum/core.git
synced 2025-10-17 09:46:14 +02:00
- Deprecated all events involved with Formatter - Refactor ->configure() method on extender not to use events - Add extender methods for ->render() and ->parse() - Add integration tests
46 lines
789 B
PHP
46 lines
789 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of Flarum.
|
|
*
|
|
* For detailed copyright and license information, please view the
|
|
* LICENSE file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Flarum\Formatter\Event;
|
|
|
|
use s9e\TextFormatter\Parser;
|
|
|
|
/**
|
|
* @deprecated beta 15, removed beta 16. Use the Formatter extender instead.
|
|
*/
|
|
class Parsing
|
|
{
|
|
/**
|
|
* @var Parser
|
|
*/
|
|
public $parser;
|
|
|
|
/**
|
|
* @var mixed
|
|
*/
|
|
public $context;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $text;
|
|
|
|
/**
|
|
* @param Parser $parser
|
|
* @param mixed $context
|
|
* @param string $text
|
|
*/
|
|
public function __construct(Parser $parser, $context, &$text)
|
|
{
|
|
$this->parser = $parser;
|
|
$this->context = $context;
|
|
$this->text = &$text;
|
|
}
|
|
}
|