yii\base\Controller::__construct PHP Метод

__construct() публичный Метод

public __construct ( string $id, Module $module, array $config = [] )
$id string the ID of this controller.
$module Module the module that this controller belongs to.
$config array name-value pairs that will be used to initialize the object properties.
    public function __construct($id, $module, $config = [])
    {
        $this->id = $id;
        $this->module = $module;
        parent::__construct($config);
    }