mirror of
https://github.com/flarum/core.git
synced 2025-10-12 07:24:27 +02:00
Event subscriptions now take place before *any* boot method is called. This ensures that all event listeners are registered before things happen – e.g. locales are registered before the translator is instantiated in the Tags extension's boot method.
13 lines
286 B
PHP
13 lines
286 B
PHP
<?php namespace {{namespace}};
|
|
|
|
use Flarum\Support\Extension as BaseExtension;
|
|
use Illuminate\Events\Dispatcher;
|
|
|
|
class Extension extends BaseExtension
|
|
{
|
|
public function listen(Dispatcher $events)
|
|
{
|
|
$events->subscribe('{{namespace}}\Listeners\AddClientAssets');
|
|
}
|
|
}
|