Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9439ca1

Browse files
ConstantsDAY,MONTH andWEEK was deleted fromTtl class
1 parent997f7bf commit9439ca1

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

‎README.md‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -317,10 +317,6 @@ Cache::make()->ttl(fn () => 10);
317317

318318
Cache::make()->ttl(Carbon::now()->addDay());
319319
Cache::make()->ttl(new DateTime('tomorrow'));
320-
321-
Cache::make()->ttl(Ttl::DAY);
322-
Cache::make()->ttl(Ttl::WEEK);
323-
Cache::make()->ttl(Ttl::MONTH);
324320
```
325321

326322
#####As Seconds

‎UPGRADE.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,9 @@ This means that the `DragonCode\Contracts\*` contracts will no longer be working
3030
###Replaces Namespaces
3131

3232
-`DragonCode\Contracts\Support\Arrayable` replace with`Illuminate\Contracts\Support\Arrayable`
33+
34+
##Low Impact Changes
35+
36+
###TTL Time Constants
37+
38+
Constants`DAY`,`MONTH` and`WEEK` was deleted from`DragonCode\Cache\Support\Ttl` class.

‎src/Support/Ttl.php‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,6 @@ class Ttl
1818
use Call;
1919
use Has;
2020

21-
/** @deprecated */
22-
publicconstDAY =60 *24;
23-
24-
publicconstMONTH =60 *24 *30;
25-
publicconstWEEK =60 *24 *7;
26-
2721
protectedint$default =3600;
2822

2923
publicfunctionfromMinutes($minutes):int

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp