Update namespaces for beta 8

Refs flarum/core#1235.
This commit is contained in:
Franz Liedke 2017-10-01 19:55:56 +02:00
parent fe923ef84c
commit 5dcfccd2d8

View File

@ -11,7 +11,7 @@
namespace Flarum\Markdown\Listener;
use Flarum\Event\ConfigureFormatter;
use Flarum\Formatter\Event\Configuring;
use Illuminate\Contracts\Events\Dispatcher;
class FormatMarkdown
@ -21,13 +21,13 @@ class FormatMarkdown
*/
public function subscribe(Dispatcher $events)
{
$events->listen(ConfigureFormatter::class, [$this, 'addMarkdownFormatter']);
$events->listen(Configuring::class, [$this, 'addMarkdownFormatter']);
}
/**
* @param ConfigureFormatter $event
* @param Configuring $event
*/
public function addMarkdownFormatter(ConfigureFormatter $event)
public function addMarkdownFormatter(Configuring $event)
{
$event->configurator->Litedown;
}