This commit is contained in:
@ -26,6 +26,11 @@ class CommandShow extends Command
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Read the configuration file.
|
||||
* 2. For each configured backup print the details
|
||||
* 3. Exit
|
||||
*/
|
||||
protected function execute(InputInterface $input, OutputInterface $output): int
|
||||
{
|
||||
$sio = new SymfonyStyle($input, $output);
|
||||
|
@ -21,7 +21,7 @@ class Notification
|
||||
/**
|
||||
* Load multiple configurations
|
||||
*
|
||||
* @param array<array<string>> $config Array of notifier configurations.
|
||||
* @param array<string[]> $config Array of notifier configurations.
|
||||
*/
|
||||
public function loadMany(array $config): void
|
||||
{
|
||||
|
@ -13,6 +13,7 @@ use InvalidArgumentException;
|
||||
class Ntfy implements NotificationInterface
|
||||
{
|
||||
private string $topic = 'default';
|
||||
|
||||
/**
|
||||
* Initialize with configuration.
|
||||
*
|
||||
@ -45,6 +46,9 @@ class Ntfy implements NotificationInterface
|
||||
return $this->topic;
|
||||
}
|
||||
|
||||
/**
|
||||
* Push a message with Ntfy
|
||||
*/
|
||||
public function send(string $title, string $message): void
|
||||
{
|
||||
if (strlen($title) < 1 || strlen($title) >= 256) {
|
||||
|
Reference in New Issue
Block a user