Update source into github
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\Repositories\File;
|
||||
|
||||
use App\Repositories\BaseCachedRepository;
|
||||
|
||||
class FileCachedRepository extends BaseCachedRepository implements FileRepositoryInterface
|
||||
{
|
||||
public function __construct(
|
||||
public FileRepository $fileRepository
|
||||
) {
|
||||
parent::__construct();
|
||||
}
|
||||
public function getModel()
|
||||
{
|
||||
return $this->fileRepository->getModel();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App\Repositories\File;
|
||||
|
||||
use App\Models\File;
|
||||
use App\Repositories\BaseRepository;
|
||||
|
||||
class FileRepository extends BaseRepository implements FileRepositoryInterface
|
||||
{
|
||||
public function getModel()
|
||||
{
|
||||
return File::class;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace App\Repositories\File;
|
||||
|
||||
use App\Repositories\BaseRepositoryInterface;
|
||||
|
||||
interface FileRepositoryInterface extends BaseRepositoryInterface
|
||||
{}
|
||||
Reference in New Issue
Block a user