19 lines
363 B
PHP
19 lines
363 B
PHP
<?php
|
|
namespace App\CMS\Pipeline\Process;
|
|
|
|
use App\CMS\Contracts\Content\DisplayPipeline\Process;
|
|
use App\Models\Content\Content;
|
|
|
|
class AddViewedToPage implements Process {
|
|
/**
|
|
* Process and modify given page
|
|
*
|
|
* @param Content $page
|
|
*
|
|
* @return mixed
|
|
*/
|
|
function handle(Content & $page)
|
|
{
|
|
$page->view();
|
|
}
|
|
} |