This commit is contained in:
Julien Fastré 2024-06-28 10:47:12 +02:00
parent 86c862e69d
commit c9d54a5fea
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -1,5 +1,14 @@
<?php <?php
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\DocStoreBundle\Service\Signature\Driver\BaseSigner; namespace Chill\DocStoreBundle\Service\Signature\Driver\BaseSigner;
use Psr\Log\LoggerInterface; use Psr\Log\LoggerInterface;
@ -8,18 +17,16 @@ use Symfony\Component\Messenger\Handler\MessageHandlerInterface;
final readonly class PdfSignedMessageHandler implements MessageHandlerInterface final readonly class PdfSignedMessageHandler implements MessageHandlerInterface
{ {
/** /**
* log prefix * log prefix.
*/ */
private const P = '[pdf signed message] '; private const P = '[pdf signed message] ';
public function __construct( public function __construct(
private LoggerInterface $logger, private LoggerInterface $logger,
) ) {}
{
}
public function __invoke(PdfSignedMessage $message): void public function __invoke(PdfSignedMessage $message): void
{ {
$this->logger->info(self::P."a message is received", ['signaturedId' => $message->signatureId]); $this->logger->info(self::P.'a message is received', ['signaturedId' => $message->signatureId]);
} }
} }