Skip to content
This repository has been archived by the owner on Nov 16, 2024. It is now read-only.

Commit

Permalink
Commented a little bit
Browse files Browse the repository at this point in the history
  • Loading branch information
matpompili committed Dec 20, 2015
1 parent 49f4750 commit 518f9dc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/Listeners/AddClientAssets.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ public function addAssets(ConfigureClientView $event)
}
}

/*
* Provides i18n files.
*/
public function addLocales(ConfigureLocales $event)
{
foreach (new DirectoryIterator(__DIR__.'/../../locale') as $file) {
Expand Down
5 changes: 4 additions & 1 deletion src/Listeners/LoadSettingsFromDatabase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 518f9dc

Please sign in to comment.