More tests and refactoring
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
2023-06-15 14:10:17 +00:00
parent 72058335ca
commit f41571cfd2
9 changed files with 92 additions and 38 deletions

View File

@ -28,6 +28,7 @@ class Notification
*
* @param string $key Notification class
* @param string[] $config Implementation specific configuration
* @SuppressWarnings(PHPMD)
*/
public function loadSingle(string $key, array $config): void
{
@ -35,7 +36,7 @@ class Notification
case 'ntfy':
case 'Ntfy':
case 'NTFY':
$this->notifiers[] = new Ntfy($config);
$this->notifiers[] = Ntfy::factory($config);
break;
default:
break;