| 1 | <?php |
||
| 7 | abstract class AbstractRepository |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * The resource directory name. |
||
| 11 | * |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | protected $resourceDir = 'resources'; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Load a json file and decode it. |
||
| 18 | * |
||
| 19 | * @param string $path |
||
| 20 | * |
||
| 21 | * @throws \ArjanSchouten\HtmlMinifier\Exception\FileNotFoundException |
||
| 22 | * |
||
| 23 | * @return mixed |
||
| 24 | */ |
||
| 25 | 2 | protected function loadJson($path) |
|
| 33 | |||
| 34 | /** |
||
| 35 | * Get the absolute path to the given resource file. |
||
| 36 | * |
||
| 37 | * @param string $file |
||
| 38 | * |
||
| 39 | * @return string |
||
| 40 | */ |
||
| 41 | 2 | protected function resource($file) |
|
| 45 | } |
||
| 46 |