| 1 | <?php |
||
| 21 | class SaveSettings extends CreateModel |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @return array |
||
| 25 | */ |
||
| 26 | public $validBodyParams = [ |
||
| 27 | 'defaultConnection', |
||
| 28 | 'defaultCache' |
||
| 29 | ]; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @inheritdoc |
||
| 33 | */ |
||
| 34 | public $statusCodeSuccess = 200; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @inheritdoc |
||
| 38 | * @throws \yii\web\UnauthorizedHttpException |
||
| 39 | */ |
||
| 40 | public function run() |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @inheritdoc |
||
| 49 | * @param Settings $model |
||
| 50 | */ |
||
| 51 | protected function performAction(Model $model): bool |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @inheritdoc |
||
| 63 | * @return Settings |
||
| 64 | */ |
||
| 65 | protected function newModel(array $config = []): Model |
||
| 69 | } |
||
| 70 |