Skip to content

Commit d67bf30

Browse files
committed
fix to psr clock
1 parent 0356a6e commit d67bf30

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

composer.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@
3232
"php": "^8.2",
3333
"ext-session": "*",
3434

35-
"symfony/config": "^6.4 || ^7.0 ",
36-
"symfony/http-kernel": "^6.4 || ^7.0 ",
37-
"symfony/dependency-injection": "^6.4 || ^7.0 ",
38-
"symfony/clock": "^6.4 || ^7.0 ",
35+
"symfony/config": "^6.4 || ^7.0",
36+
"symfony/http-kernel": "^6.4 || ^7.0",
37+
"symfony/dependency-injection": "^6.4 || ^7.0",
38+
"psr/clock": "^1.0",
3939

4040
"doctrine/dbal": "^3.0 || ^4.0",
4141
"doctrine/persistence": "^3.2",

composer.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Repository/SessionRepository.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
99
use Doctrine\DBAL\Types\Types;
1010
use Doctrine\Persistence\ManagerRegistry;
11+
use Psr\Clock\ClockInterface;
1112
use Shapecode\Bundle\Doctrine\SessionHandlerBundle\Entity\Session;
12-
use Symfony\Component\Clock\Clock;
1313

1414
/** @template-extends ServiceEntityRepository<Session> */
1515
class SessionRepository extends ServiceEntityRepository
1616
{
1717
public function __construct(
1818
ManagerRegistry $registry,
19-
private readonly Clock $clock,
19+
private readonly ClockInterface $clock,
2020
) {
2121
parent::__construct($registry, Session::class);
2222
}

0 commit comments

Comments
 (0)