mirror of
https://github.com/flarum/core.git
synced 2025-08-01 14:10:37 +02:00
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
namespace Flarum\BBCode\Listener;
|
namespace Flarum\BBCode\Listener;
|
||||||
|
|
||||||
use Flarum\Event\ConfigureFormatter;
|
use Flarum\Formatter\Event\Configuring;
|
||||||
use Illuminate\Contracts\Events\Dispatcher;
|
use Illuminate\Contracts\Events\Dispatcher;
|
||||||
|
|
||||||
class FormatBBCode
|
class FormatBBCode
|
||||||
@@ -21,13 +21,13 @@ class FormatBBCode
|
|||||||
*/
|
*/
|
||||||
public function subscribe(Dispatcher $events)
|
public function subscribe(Dispatcher $events)
|
||||||
{
|
{
|
||||||
$events->listen(ConfigureFormatter::class, [$this, 'addBBCodeFormatter']);
|
$events->listen(Configuring::class, [$this, 'addBBCodeFormatter']);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param ConfigureFormatter $event
|
* @param Configuring $event
|
||||||
*/
|
*/
|
||||||
public function addBBCodeFormatter(ConfigureFormatter $event)
|
public function addBBCodeFormatter(Configuring $event)
|
||||||
{
|
{
|
||||||
$event->configurator->BBCodes->addFromRepository('B');
|
$event->configurator->BBCodes->addFromRepository('B');
|
||||||
$event->configurator->BBCodes->addFromRepository('I');
|
$event->configurator->BBCodes->addFromRepository('I');
|
||||||
|
Reference in New Issue
Block a user