FEATURE: move blog module into own repository

This commit is contained in:
Michal Kváček
2017-08-22 14:07:21 +02:00
commit 02bd68543e
49 changed files with 1319 additions and 0 deletions
@@ -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__;
}
}