FEATURE: move blog module into own repository
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
<?php namespace Modules\Blog\Article\Providers;
|
||||
|
||||
use App\CMS\Modules\ServiceProviders\ServiceProvider;
|
||||
use Modules\Blog\Article\Pipeline\DisplayContent\LoadCommentsForBlogpost;
|
||||
use Modules\Blog\Article\Pipeline\SaveContent\TurnCommentsOnOrOff;
|
||||
|
||||
class ArticleServiceProvider extends ServiceProvider
|
||||
{
|
||||
/**
|
||||
* Boot the application events.
|
||||
* @return void
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
parent::boot();
|
||||
|
||||
$this->app->register(ArticleEventServiceProvider::class);
|
||||
|
||||
// load comments for blogpost
|
||||
app('displayPipeline')->add(LoadCommentsForBlogpost::class);
|
||||
|
||||
app('saveContentPipeline')->add(TurnCommentsOnOrOff::class);
|
||||
}
|
||||
|
||||
protected function setModuleAlias()
|
||||
{
|
||||
$this->alias = 'article';
|
||||
}
|
||||
|
||||
protected function setModulePath()
|
||||
{
|
||||
$this->path = __DIR__;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user