1
0
mirror of https://github.com/flarum/core.git synced 2025-08-02 06:30:53 +02:00

Move events to Flarum\Formatter\Event namespace

This commit is contained in:
Franz Liedke
2017-06-24 13:28:22 +02:00
parent 6c9ff72efb
commit 6cd6a7d260
4 changed files with 12 additions and 12 deletions

View File

@@ -9,11 +9,11 @@
* file that was distributed with this source code. * file that was distributed with this source code.
*/ */
namespace Flarum\Event; namespace Flarum\Formatter\Event;
use s9e\TextFormatter\Configurator; use s9e\TextFormatter\Configurator;
class ConfigureFormatter class Configuring
{ {
/** /**
* @var Configurator * @var Configurator

View File

@@ -9,11 +9,11 @@
* file that was distributed with this source code. * file that was distributed with this source code.
*/ */
namespace Flarum\Event; namespace Flarum\Formatter\Event;
use s9e\TextFormatter\Parser; use s9e\TextFormatter\Parser;
class ConfigureFormatterParser class Parsing
{ {
/** /**
* @var Parser * @var Parser

View File

@@ -9,11 +9,11 @@
* file that was distributed with this source code. * file that was distributed with this source code.
*/ */
namespace Flarum\Event; namespace Flarum\Formatter\Event;
use s9e\TextFormatter\Renderer; use s9e\TextFormatter\Renderer;
class ConfigureFormatterRenderer class Rendering
{ {
/** /**
* @var Renderer * @var Renderer

View File

@@ -11,9 +11,9 @@
namespace Flarum\Formatter; namespace Flarum\Formatter;
use Flarum\Event\ConfigureFormatter; use Flarum\Formatter\Event\Configuring;
use Flarum\Event\ConfigureFormatterParser; use Flarum\Formatter\Event\Parsing;
use Flarum\Event\ConfigureFormatterRenderer; use Flarum\Formatter\Event\Rendering;
use Illuminate\Contracts\Cache\Repository; use Illuminate\Contracts\Cache\Repository;
use Illuminate\Contracts\Events\Dispatcher; use Illuminate\Contracts\Events\Dispatcher;
use s9e\TextFormatter\Configurator; use s9e\TextFormatter\Configurator;
@@ -59,7 +59,7 @@ class Formatter
{ {
$parser = $this->getParser($context); $parser = $this->getParser($context);
$this->events->fire(new ConfigureFormatterParser($parser, $context, $text)); $this->events->fire(new Parsing($parser, $context, $text));
return $parser->parse($text); return $parser->parse($text);
} }
@@ -75,7 +75,7 @@ class Formatter
{ {
$renderer = $this->getRenderer($context); $renderer = $this->getRenderer($context);
$this->events->fire(new ConfigureFormatterRenderer($renderer, $context, $xml)); $this->events->fire(new Rendering($renderer, $context, $xml));
return $renderer->render($xml); return $renderer->render($xml);
} }
@@ -117,7 +117,7 @@ class Formatter
$configurator->Autolink; $configurator->Autolink;
$configurator->tags->onDuplicate('replace'); $configurator->tags->onDuplicate('replace');
$this->events->fire(new ConfigureFormatter($configurator)); $this->events->fire(new Configuring($configurator));
$this->configureExternalLinks($configurator); $this->configureExternalLinks($configurator);