REFACTORING: move part of content business logic into repository
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
namespace App\CMS\Repositories;
|
||||
|
||||
abstract class Repository
|
||||
{
|
||||
protected $model;
|
||||
|
||||
public function __call($method, $args)
|
||||
{
|
||||
return call_user_func_array([$this->model, $method], $args);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user