Add BootForum event so extensions can add assets

This commit is contained in:
Toby Zerner 2015-04-25 22:35:41 +09:30
parent 334bb596c2
commit 8430b67d5b
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,11 @@
<?php namespace Flarum\Forum\Events;
class BootForum
{
public $app;
public function __construct($app)
{
$this->app = $app;
}
}

View File

@ -2,6 +2,7 @@
use Illuminate\Support\ServiceProvider;
use Flarum\Support\AssetManager;
use Flarum\Forum\Events\BootForum;
class ForumServiceProvider extends ServiceProvider
{
@ -23,6 +24,8 @@ class ForumServiceProvider extends ServiceProvider
$root.'/less/forum/app.less'
]);
event(new BootForum($this->app));
$this->publishes([
$root.'/public/fonts' => public_path('flarum/fonts')
]);