File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed
src/Symfony/Component/Clock Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 19
19
"php-http/async-client-implementation" : " *" ,
20
20
"php-http/client-implementation" : " *" ,
21
21
"psr/cache-implementation" : " 2.0|3.0" ,
22
+ "psr/clock-implementation" : " 1.0" ,
22
23
"psr/container-implementation" : " 1.1|2.0" ,
23
24
"psr/event-dispatcher-implementation" : " 1.0" ,
24
25
"psr/http-client-implementation" : " 1.0" ,
40
41
"doctrine/persistence" : " ^2|^3" ,
41
42
"twig/twig" : " ^2.13|^3.0.4" ,
42
43
"psr/cache" : " ^2.0|^3.0" ,
44
+ "psr/clock" : " ^1.0" ,
43
45
"psr/container" : " ^1.1|^2.0" ,
44
46
"psr/event-dispatcher" : " ^1.0" ,
45
47
"psr/link" : " ^1.1|^2.0" ,
Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \Clock ;
13
13
14
+ use Psr \Clock \ClockInterface as PsrClockInterface ;
15
+
14
16
/**
15
17
* @author Nicolas Grekas <p@tchwork.com>
16
18
*/
17
- interface ClockInterface
19
+ interface ClockInterface extends PsrClockInterface
18
20
{
19
- public function now (): \DateTimeImmutable ;
20
-
21
21
public function sleep (float |int $ seconds ): void ;
22
22
23
23
public function withTimeZone (\DateTimeZone |string $ timezone ): static ;
Original file line number Diff line number Diff line change 15
15
"homepage" : " https://symfony.com/contributors"
16
16
}
17
17
],
18
+ "provide" : {
19
+ "psr/clock-implementation" : " 1.0"
20
+ },
18
21
"require" : {
19
- "php" : " >=8.1"
22
+ "php" : " >=8.1" ,
23
+ "psr/clock" : " ^1.0"
20
24
},
21
25
"autoload" : {
22
26
"psr-4" : { "Symfony\\ Component\\ Clock\\ " : " " },
You can’t perform that action at this time.
0 commit comments