Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/Illuminate/Console/Scheduling/Schedule.php
Original file line number Diff line number Diff line change
Expand Up @@ -432,11 +432,13 @@ public function events()
/**
* Specify the cache store that should be used to store mutexes.
*
* @param string $store
* @param \UnitEnum|string $store
* @return $this
*/
public function useCache($store)
{
$store = enum_value($store);

if ($this->eventMutex instanceof CacheAware) {
$this->eventMutex->useStore($store);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Support/Facades/Schedule.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* @method static bool serverShouldRun(\Illuminate\Console\Scheduling\Event $event, \DateTimeInterface $time)
* @method static \Illuminate\Support\Collection dueEvents(\Illuminate\Contracts\Foundation\Application $app)
* @method static \Illuminate\Console\Scheduling\Event[] events()
* @method static \Illuminate\Console\Scheduling\Schedule useCache(string $store)
* @method static \Illuminate\Console\Scheduling\Schedule useCache(\UnitEnum|string $store)
* @method static void macro(string $name, object|callable $macro)
* @method static void mixin(object $mixin, bool $replace = true)
* @method static bool hasMacro(string $name)
Expand Down