| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function actionIndex() |
||
| 23 | { |
||
| 24 | Yii::$container->set(ActivityLogDecorator::class, [ |
||
| 25 | 'entityMap' => $this->module->entityMap |
||
| 26 | ]); |
||
| 27 | |||
| 28 | $searchModel = new ActivityLogSearch(); |
||
| 29 | $searchModel->load(Yii::$app->getRequest()->getQueryParams()); |
||
| 30 | |||
| 31 | if ($searchModel->validate()) { |
||
| 32 | throw new BadRequestHttpException($searchModel->getErrorSummary(false)[0]); |
||
| 33 | } |
||
| 34 | |||
| 35 | $dataProvider = $searchModel->search(); |
||
| 36 | |||
| 37 | return $this->render('index', [ |
||
| 38 | 'dataProvider' => $dataProvider, |
||
| 39 | ]); |
||
| 42 |