File tree Expand file tree Collapse file tree 1 file changed +10
-13
lines changed Expand file tree Collapse file tree 1 file changed +10
-13
lines changed Original file line number Diff line number Diff line change @@ -36,19 +36,16 @@ class ExtensionSettings implements ExtenderInterface
3636
3737 public function extend (Container $ container , Extension $ extension = null )
3838 {
39- $ container ->resolving (
40- 'flarum.frontend.forum ' ,
41- function (Frontend $ frontend , Container $ container ) {
42- /** @var SettingsRepositoryInterface settings */
43- $ settings = $ container ->make (SettingsRepositoryInterface::class);
44-
45- $ frontend ->content (function (Document $ document ) use ($ settings ) {
46- foreach ($ this ->keys as $ index => $ key ) {
47- $ document ->payload [$ key ] = $ settings ->get ($ key , $ this ->defaults [$ index ]);
48- }
49- });
50- }
51- );
39+ $ container ->resolving ('flarum.frontend.forum ' , function (Frontend $ frontend , Container $ container ) {
40+ /** @var SettingsRepositoryInterface settings */
41+ $ settings = $ container ->make (SettingsRepositoryInterface::class);
42+
43+ $ frontend ->content (function (Document $ document ) use ($ settings ) {
44+ foreach ($ this ->keys as $ index => $ key ) {
45+ $ document ->payload [$ key ] = $ settings ->get ($ key , $ this ->defaults [$ index ]);
46+ }
47+ });
48+ });
5249 }
5350
5451 /**
You can’t perform that action at this time.
0 commit comments