| 1 | <?php |
||
| 10 | class RepositoryManager extends Manager |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Class constructor. |
||
| 14 | * |
||
| 15 | * @param \Illuminate\Foundation\Application $app |
||
| 16 | */ |
||
| 17 | public function __construct(Application $app) |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Create database repository. |
||
| 24 | * |
||
| 25 | * @return \RichanFongdasen\I18n\Repositories\DatabaseRepository |
||
| 26 | */ |
||
| 27 | public function createDatabaseDriver(): DatabaseRepository |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Create json repository. |
||
| 34 | * |
||
| 35 | * @return \RichanFongdasen\I18n\Repositories\JsonRepository |
||
| 36 | */ |
||
| 37 | public function createJsonDriver(): JsonRepository |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Get language datasource. |
||
| 44 | * |
||
| 45 | * @return string |
||
| 46 | */ |
||
| 47 | protected function getDatasource(): string |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Get the default driver name. |
||
| 54 | * |
||
| 55 | * @return string |
||
| 56 | */ |
||
| 57 | public function getDefaultDriver(): string |
||
| 61 | } |
||
| 62 |