FEATURE #2350 @1h: move beforeRender methods into pipeline
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
namespace Modules\StaticPages\PipelineProcess;
|
||||
|
||||
use App\CMS\Contracts\Content\DisplayPipeline\Process;
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Models\Content\Content;
|
||||
|
||||
class RenderPage implements Process {
|
||||
/**
|
||||
* Process and modify given page
|
||||
*
|
||||
* @param Content $page
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
function handle(Content & $page)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
<?php namespace Modules\Staticpages\Providers;
|
||||
|
||||
use App\Providers\ModuleServiceProvider;
|
||||
use Modules\StaticPages\PipelineProcess\RenderPage;
|
||||
|
||||
class StaticPagesServiceProvider extends ModuleServiceProvider
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user