diff --git a/src/Listeners/AddClientAssets.php b/src/Listeners/AddClientAssets.php index bc2e347..2874772 100644 --- a/src/Listeners/AddClientAssets.php +++ b/src/Listeners/AddClientAssets.php @@ -37,6 +37,9 @@ public function addAssets(ConfigureClientView $event) } } + /* + * Provides i18n files. + */ public function addLocales(ConfigureLocales $event) { foreach (new DirectoryIterator(__DIR__.'/../../locale') as $file) { diff --git a/src/Listeners/LoadSettingsFromDatabase.php b/src/Listeners/LoadSettingsFromDatabase.php index 511dc02..09c9e69 100644 --- a/src/Listeners/LoadSettingsFromDatabase.php +++ b/src/Listeners/LoadSettingsFromDatabase.php @@ -24,7 +24,10 @@ public function __construct(SettingsRepositoryInterface $settings) { public function subscribe(Dispatcher $events) { $events->listen(PrepareApiAttributes::class, [$this, 'prepareApiAttributes']); } - + /* + * Get the setting values from the database and make them available + * in the forum. + */ public function prepareApiAttributes(PrepareApiAttributes $event) { if ($event->isSerializer(ForumSerializer::class)) { $event->attributes['imgurClientID'] = $this->settings->get('matpompili.imgur-upload.clientID');