public function __construct($id, $controller, $config = []) { $fontFile = '@app/components/captcha/gtw.ttf'; $config = ArrayHelper::merge(compact('fontFile'), $config); parent::__construct($id, $controller, $config); }