Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
matfish3 committed Jan 27, 2024
1 parent f4af18f commit df42f66
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 83 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Release Notes for Console Scheduler

## 1.0.2 - 2024-01-27
- Refactor

## 1.0.1 - 2024-01-26
- Pass explicit DateTime object from Craft
- Allow testing locally
Expand Down
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ Supported frequencies:
* `everySixHours()`
* `daily()`
* `dailyAt($time)`
* `twiceDaily($hour1 = 1,$hour2 = 13)`
* `twiceDailyAt($hour1 = 1,$hour2 = 13, $offset = 0)`
* `weekdays()`
* `weedends()`
* `days($day1,$day2, $day3, etc)` - specific days of week
* `sundays()`
* `mondays()`
Expand All @@ -82,15 +85,15 @@ Supported frequencies:
* `fridays()`
* `satrudays()`
* `weekly()`
* `weeklyOn($dayOfWeek, $time)`
* `weeklyOn($dayOfWeek, $time = '0:0')`
* `monthly()`
* `monthlyOn($dayOfMonth, $time)`
* `twiceMonthly($firstDay, $secondDay, $time)`
* `lastDayOfMonth($time)`
* `twiceMonthly($firstDay = 1, $secondDay = 16, $time = '0:0')`
* `lastDayOfMonth($time = '0:0')`
* `quarterly()`
* `quarterlyOn($dayOfQuarter, $time)`
* `quarterlyOn($dayOfQuarter = 1, $time = '0:0')`
* `yearly()`
* `yearlyOn($month, $dayOfMonth, $time)`
* `yearlyOn($month = 1, $dayOfMonth = 1, $time = '0:0')`

Methods without a specified time can be followed by an `at` method using fluent syntax.

Expand Down
Loading

0 comments on commit df42f66

Please sign in to comment.