REDROOM
PHP 8.3.31
Path:
Logout
Edit File
Size: 1.45 KB
Close
/home/getspomw/royalsquad.us/vendor/laravel/framework/src/Illuminate/Foundation/Queue/InteractsWithUniqueJobs.php
Text
Base64
<?php namespace Illuminate\Foundation\Queue; use Illuminate\Bus\UniqueLock; use Illuminate\Contracts\Queue\ShouldBeUnique; use Illuminate\Support\Facades\Context; trait InteractsWithUniqueJobs { /** * Store unique job information in the context in case we can't resolve the job on the queue side. * * @param mixed $job * @return void */ public function addUniqueJobInformationToContext($job): void { if ($job instanceof ShouldBeUnique) { Context::addHidden([ 'laravel_unique_job_cache_store' => $this->getUniqueJobCacheStore($job), 'laravel_unique_job_key' => UniqueLock::getKey($job), ]); } } /** * Remove the unique job information from the context. * * @param mixed $job * @return void */ public function removeUniqueJobInformationFromContext($job): void { if ($job instanceof ShouldBeUnique) { Context::forgetHidden([ 'laravel_unique_job_cache_store', 'laravel_unique_job_key', ]); } } /** * Determine the cache store used by the unique job to acquire locks. * * @param mixed $job * @return string|null */ protected function getUniqueJobCacheStore($job): ?string { return method_exists($job, 'uniqueVia') ? $job->uniqueVia()->getName() : config('cache.default'); } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 2
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
InteractsWithUniqueJobs.php
1.45 KB
lrw-rw-rw-
2025-09-17 06:52:55
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Queueable.php
316 B
lrw-rw-rw-
2025-09-17 06:52:55
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).