| 1 | <?php |
||
| 20 | final class FlashMessageService implements FlashMessageServiceInterface |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var FlashBagInterface |
||
| 24 | */ |
||
| 25 | private $flashBag; |
||
| 26 | |||
| 27 | public function __construct(FlashBagInterface $flashBag) |
||
| 31 | |||
| 32 | public function success(string $message): void |
||
| 36 | |||
| 37 | public function info(string $message): void |
||
| 41 | |||
| 42 | public function warning(string $message): void |
||
| 46 | |||
| 47 | public function danger(string $message): void |
||
| 51 | |||
| 52 | private function add(string $type, string $message): void |
||
| 56 | } |
||
| 57 |