You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The client supports an array of attributes as a second argument to the constructor:
if (isset($attributes['channel'])) {
$this->setDefaultChannel($attributes['channel']);
}
if (isset($attributes['username'])) {
$this->setDefaultUsername($attributes['username']);
}
if (isset($attributes['icon'])) {
$this->setDefaultIcon($attributes['icon']);
}
if (isset($attributes['link_names'])) {
$this->setLinkNames($attributes['link_names']);
}
if (isset($attributes['unfurl_links'])) {
$this->setUnfurlLinks($attributes['unfurl_links']);
}
if (isset($attributes['unfurl_media'])) {
$this->setUnfurlMedia($attributes['unfurl_media']);
}
if (isset($attributes['allow_markdown'])) {
$this->setAllowMarkdown($attributes['allow_markdown']);
}
if (isset($attributes['markdown_in_attachments'])) {
$this->setMarkdownInAttachments($attributes['markdown_in_attachments']);
}
It would be great to be able to define them in the config and then have that passed to the constructor.
I would be happy to submit a PR for this.
The text was updated successfully, but these errors were encountered:
The client supports an array of attributes as a second argument to the constructor:
It would be great to be able to define them in the config and then have that passed to the constructor.
I would be happy to submit a PR for this.
The text was updated successfully, but these errors were encountered: