Issues (23)

controllers/AdminController.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace humhub\modules\steam\controllers;
4
5
use Yii;
6
use humhub\modules\admin\components\Controller;
0 ignored issues
show
The type humhub\modules\admin\components\Controller was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
7
use humhub\modules\steam\models\ConfigureForm;
8
9
class AdminController extends Controller
10
{
11
12
    public function actionIndex()
13
    {
14
        $model = new ConfigureForm();
15
        $model->loadSettings();
16
17
        if ($model->load(Yii::$app->request->post()) && $model->save()) {
18
            $this->view->saved();
19
        }
20
21
        return $this->render('index', ['model' => $model]);
22
    }
23
24
}
25