Skip to content

Commit

Permalink
refactor: Add DotNetTimeConverter service.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Sep 15, 2021
1 parent e6a61c0 commit 55c94ca
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Resources/config/services.php
Expand Up @@ -15,12 +15,14 @@
use ChampsLibres\WopiLib\Contract\Service\Discovery\DiscoveryInterface;
use ChampsLibres\WopiLib\Contract\Service\DocumentLockManagerInterface;
use ChampsLibres\WopiLib\Contract\Service\ProofValidatorInterface;
use ChampsLibres\WopiLib\Contract\Service\Utils\DotNetTimeConverterInterface;
use ChampsLibres\WopiLib\Contract\Service\WopiInterface;
use ChampsLibres\WopiLib\Service\Clock\SystemClock;
use ChampsLibres\WopiLib\Service\Configuration\Configuration;
use ChampsLibres\WopiLib\Service\Discovery\Discovery;
use ChampsLibres\WopiLib\Service\DocumentLockManager;
use ChampsLibres\WopiLib\Service\ProofValidator;
use ChampsLibres\WopiLib\Service\Utils\DotNetTimeConverter;

return static function (ContainerConfigurator $container) {
$services = $container->services();
Expand Down Expand Up @@ -59,6 +61,12 @@
$services
->alias(ClockInterface::class, SystemClock::class);

$services
->set(DotNetTimeConverter::class);

$services
->alias(DotNetTimeConverterInterface::class, DotNetTimeConverter::class);

$services
->set(ProofValidator::class);

Expand Down

0 comments on commit 55c94ca

Please sign in to comment.