mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-14 14:24:24 +00:00
36 lines
852 B
PHP
36 lines
852 B
PHP
<?php
|
|
|
|
/**
|
|
* Chill is a software for social workers.
|
|
*
|
|
* For the full copyright and license information, please view
|
|
* the LICENSE file that was distributed with this source code.
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
/*
|
|
* Chill is a software for social workers
|
|
*
|
|
* For the full copyright and license information, please view
|
|
* the LICENSE file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Chill\MainBundle\Service\ShortMessage;
|
|
|
|
class ShortMessageTransporter implements ShortMessageTransporterInterface
|
|
{
|
|
private ShortMessageSenderInterface $sender;
|
|
|
|
public function __construct(
|
|
ShortMessageSenderInterface $sender // hint: must remain at place 0 for DI
|
|
) {
|
|
$this->sender = $sender;
|
|
}
|
|
|
|
public function send(ShortMessage $shortMessage): void
|
|
{
|
|
$this->sender->send($shortMessage);
|
|
}
|
|
}
|