File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 2929 "psr/http-factory" : " ^1.0" ,
3030 "psr/http-message" : " ^1.0|^2.0" ,
3131 "psr/log" : " ^3.0.0" ,
32- "ramsey/uuid" : " ^4.7" ,
3332 "symfony/cache" : " ^7.2" ,
33+ "symfony/uid" : " ^7.1" ,
3434 "symfony/var-dumper" : " ^7.1" ,
3535 "symfony/var-exporter" : " ^7.1" ,
3636 "tempest/highlight" : " ^2.0" ,
Original file line number Diff line number Diff line change 1515 "laminas/laminas-diactoros" : " ^3.3" ,
1616 "psr/http-factory" : " ^1.0" ,
1717 "psr/http-message" : " ^1.0|^2.0" ,
18- "ramsey/uuid " : " ^4.7 " ,
19- "symfony/var-exporter " : " ^7.1"
18+ "symfony/var-exporter " : " ^7.1 " ,
19+ "symfony/uid " : " ^7.1"
2020 },
2121 "autoload" : {
2222 "files" : [
Original file line number Diff line number Diff line change 44
55namespace Tempest \Http \Session \Resolvers ;
66
7- use Ramsey \ Uuid \Uuid ;
7+ use Symfony \ Component \ Uid \Uuid ;
88use Tempest \Clock \Clock ;
99use Tempest \Http \Cookie \CookieManager ;
1010use Tempest \Http \Session \Session ;
@@ -26,7 +26,7 @@ public function resolve(): SessionId
2626 $ id = $ this ->cookies ->get (Session::ID )?->value ?? null ;
2727
2828 if (! $ id ) {
29- $ id = (string ) Uuid::uuid4 ();
29+ $ id = (string ) Uuid::v4 ();
3030
3131 $ this ->cookies ->set (
3232 key: Session::ID ,
Original file line number Diff line number Diff line change 44
55namespace Tempest \Http \Session \Resolvers ;
66
7- use Ramsey \ Uuid \Uuid ;
7+ use Symfony \ Component \ Uid \Uuid ;
88use Tempest \Http \Request ;
99use Tempest \Http \Session \Session ;
1010use Tempest \Http \Session \SessionId ;
@@ -21,6 +21,6 @@ public function resolve(): SessionId
2121 {
2222 $ id = $ this ->request ->getHeaders ()[Session::ID ] ?? null ;
2323
24- return new SessionId ($ id ?? (string ) Uuid::uuid4 ());
24+ return new SessionId ($ id ?? (string ) Uuid::v4 ());
2525 }
2626}
You can’t perform that action at this time.
0 commit comments