mirror of
https://github.com/flarum/core.git
synced 2025-08-13 11:54:32 +02:00
Update for beta 8 (#11)
* Update for beta 8 * Never changed for the deprecated event
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
|
||||
namespace Flarum\Emoji\Listener;
|
||||
|
||||
use Flarum\Event\ConfigureWebApp;
|
||||
use Flarum\Frontend\Event\Rendering;
|
||||
use Illuminate\Contracts\Events\Dispatcher;
|
||||
|
||||
class AddClientAssets
|
||||
@@ -21,13 +21,13 @@ class AddClientAssets
|
||||
*/
|
||||
public function subscribe(Dispatcher $events)
|
||||
{
|
||||
$events->listen(ConfigureWebApp::class, [$this, 'addAssets']);
|
||||
$events->listen(Rendering::class, [$this, 'addAssets']);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ConfigureClientView $event
|
||||
* @param Rendering $event
|
||||
*/
|
||||
public function addAssets(ConfigureWebApp $event)
|
||||
public function addAssets(Rendering $event)
|
||||
{
|
||||
if ($event->isForum()) {
|
||||
$event->addAssets([
|
||||
|
@@ -11,7 +11,7 @@
|
||||
|
||||
namespace Flarum\Emoji\Listener;
|
||||
|
||||
use Flarum\Event\ConfigureFormatter;
|
||||
use Flarum\Formatter\Event\Configuring;
|
||||
use Illuminate\Contracts\Events\Dispatcher;
|
||||
|
||||
class FormatEmoticons
|
||||
@@ -21,13 +21,13 @@ class FormatEmoticons
|
||||
*/
|
||||
public function subscribe(Dispatcher $events)
|
||||
{
|
||||
$events->listen(ConfigureFormatter::class, [$this, 'addEmoticons']);
|
||||
$events->listen(Configuring::class, [$this, 'addEmoticons']);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ConfigureFormatter $event
|
||||
* @param Configuring $event
|
||||
*/
|
||||
public function addEmoticons(ConfigureFormatter $event)
|
||||
public function addEmoticons(Configuring $event)
|
||||
{
|
||||
$event->configurator->Emoji->useEmojiOne();
|
||||
$event->configurator->Emoji->omitImageSize();
|
||||
|
Reference in New Issue
Block a user