We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
setConfig()
1 parent 58fa9bb commit 7e2dcfcCopy full SHA for 7e2dcfc
src/FcmV1.php
@@ -74,6 +74,18 @@ public function setJsonFile($jsonFile)
74
$this->config['jsonFile'] = $jsonFile;
75
}
76
77
+ /**
78
+ * Update the values by key on config array from the passed array. If any key doesn't exist, it's added.
79
+ * @param array $config
80
+ */
81
+ public function setConfig(array $config)
82
+ {
83
+ parent::setConfig($config);
84
+
85
+ // Update url
86
+ $this->setProjectId($this->config['projectId']);
87
+ }
88
89
/**
90
* Set the needed headers for the push notification.
91
*
0 commit comments