FEATURE #2350 @1h: move beforeRender methods into pipeline

This commit is contained in:
Michal Kváček
2017-03-09 00:09:26 +01:00
parent 03ce64a731
commit 55f9c0a679
9 changed files with 188 additions and 162 deletions
@@ -1,6 +1,7 @@
<?php namespace Modules\Blog\ArticleList\Providers;
use App\Providers\ModuleServiceProvider;
use Modules\Blog\ArticleList\Pipeline\DisplayContent\LoadArticlesForList;
class ArticleListServiceProvider extends ModuleServiceProvider
{
@@ -13,4 +14,11 @@ class ArticleListServiceProvider extends ModuleServiceProvider
{
$this->path = __DIR__;
}
public function boot()
{
parent::boot();
app('displayPipeline')->add(LoadArticlesForList::class);
}
}