1
0
mirror of https://github.com/flarum/core.git synced 2025-10-12 23:44:27 +02:00

Add a base ServiceProvider with useful public APIs

This commit is contained in:
Toby Zerner
2015-05-05 14:30:45 +09:30
parent 2850c1b38c
commit 92a75fd786
4 changed files with 87 additions and 17 deletions

View File

@@ -22,6 +22,7 @@ class ExtensionsServiceProvider extends ServiceProvider
*/
public function register()
{
$app = $this->app;
$extensions = json_decode(DB::table('config')->where('key', 'extensions_enabled')->pluck('value'), true);
foreach ($extensions as $extension) {