From 7a05f71987ac47278561410719bee6d8f3f05a22 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Tue, 23 Jun 2015 10:37:01 +0930 Subject: [PATCH] Update extension stub with new APIs --- .../stubs/extension/src/ServiceProvider.php | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/framework/core/stubs/extension/src/ServiceProvider.php b/framework/core/stubs/extension/src/ServiceProvider.php index e62608409..dc71b1235 100644 --- a/framework/core/stubs/extension/src/ServiceProvider.php +++ b/framework/core/stubs/extension/src/ServiceProvider.php @@ -1,9 +1,7 @@ extend( - new ForumAssets([ - __DIR__.'/../js/dist/extension.js', - __DIR__.'/../less/extension.less' - ]), + $this->extend([ + (new Extend\Locale('en'))->translations(__DIR__.'/../locale/en.yml'), - (new Locale('en'))->translations(__DIR__.'/../locale/en.yml'), - - new ForumTranslations([ - // Add the keys of translations you would like to be available - // for use by the JS client application. - ]), - ); + (new Extend\ForumClient()) + ->assets([ + __DIR__.'/../js/dist/extension.js', + __DIR__.'/../less/extension.less' + ]) + ->translations([ + // Add the keys of translations you would like to be available + // for use by the JS client application. + ]) + ]); } /**