8000 feature #51717 [Notifier] [Telegram] Extend options for `location`, `… · symfony/notifier@e92d8c9 · GitHub
[go: up one dir, main page]

Skip to content

Commit e92d8c9

Browse files
committed
feature #51717 [Notifier] [Telegram] Extend options for location, document, audio, video, venue, photo, animation, sticker & contact (igrizzli)
This PR was squashed before being merged into the 6.4 branch. Discussion ---------- [Notifier] [Telegram] Extend options for `location`, `document`, `audio`, `video`, `venue`, `photo`, `animation`, `sticker` & `contact` | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | yes | Deprecations? | no | Tickets | | License | MIT | Doc PR | symfony/symfony-docs#... <!-- required for new features --> Extends symfony/symfony#49986 for sending local files as photo Add possibility to send point on map in notification. Commits ------- e223f8e798 [Notifier] [Telegram] Extend options for `location`, `document`, `audio`, `video`, `venue`, `photo`, `animation`, `sticker` & `contact`
2 parents 8d784b7 + 982f085 commit e92d8c9

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace Symfony\Component\Notifier\Exception;
13+
14+
/**
15+
* @author Yuriy Vilks <igrizzli@gmail.com>
16+
*/
17+
class MultipleExclusiveOptionsUsedException extends InvalidArgumentException
18+
{
19+
/**
20+
* @param string[] $usedExclusiveOptions
21+
* @param string[]|null $exclusiveOptions
22+
*/
23+
public function __construct(array $usedExclusiveOptions, array $exclusiveOptions = null, \Throwable $previous = null)
24+
{
25+
$message = sprintf('Multiple exclusive options have been used "%s".', implode('", "', $usedExclusiveOptions));
26+
if (null !== $exclusiveOptions) {
27+
$message .= sprintf(' Only one of %s can be used.', implode('", "', $exclusiveOptions));
28+
}
29+
30+
parent::__construct($message, 0, $previous);
31+
}
32+
}

0 commit comments

Comments
 (0)
0