| 1 | <?php |
||
| 8 | trait Configurable |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Cached config instances. |
||
| 12 | * |
||
| 13 | * @var array |
||
| 14 | */ |
||
| 15 | protected $cachedConfigs = []; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Get a Config value object. |
||
| 19 | * |
||
| 20 | * @return Config |
||
| 21 | */ |
||
| 22 | public function config() |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Get the config database key. |
||
| 29 | * |
||
| 30 | * @return string |
||
| 31 | */ |
||
| 32 | public function getConfigKey() |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Create a new Config instance. |
||
| 39 | * |
||
| 40 | * @param Model $model |
||
| 41 | * @param string $key |
||
| 42 | * @return Config |
||
| 43 | */ |
||
| 44 | protected function makeConfig(Model $model, string $key) |
||
| 50 | } |
||
| 51 |