App.php
2 years ago
Artisan.php
2 years ago
Auth.php
2 years ago
Blade.php
2 years ago
Broadcast.php
2 years ago
Bus.php
2 years ago
Cache.php
2 years ago
Config.php
2 years ago
Cookie.php
2 years ago
Crypt.php
2 years ago
DB.php
2 years ago
Date.php
2 years ago
Event.php
2 years ago
Facade.php
2 years ago
File.php
2 years ago
Gate.php
2 years ago
Hash.php
2 years ago
Http.php
2 years ago
Lang.php
2 years ago
Log.php
2 years ago
Mail.php
2 years ago
Notification.php
2 years ago
ParallelTesting.php
2 years ago
Password.php
2 years ago
Queue.php
2 years ago
RateLimiter.php
2 years ago
Redirect.php
2 years ago
Redis.php
2 years ago
Request.php
2 years ago
Response.php
2 years ago
Route.php
2 years ago
Schema.php
2 years ago
Session.php
2 years ago
Storage.php
2 years ago
URL.php
2 years ago
Validator.php
2 years ago
View.php
2 years ago
Queue.php
61 lines
| 1 | <?php |
| 2 | |
| 3 | namespace IAWP_SCOPED\Illuminate\Support\Facades; |
| 4 | |
| 5 | use IAWP_SCOPED\Illuminate\Queue\Worker; |
| 6 | use IAWP_SCOPED\Illuminate\Support\Testing\Fakes\QueueFake; |
| 7 | /** |
| 8 | * @method static \Illuminate\Contracts\Queue\Job|null pop(string $queue = null) |
| 9 | * @method static \Illuminate\Contracts\Queue\Queue setConnectionName(string $name) |
| 10 | * @method static int size(string $queue = null) |
| 11 | * @method static mixed bulk(array $jobs, mixed $data = '', string $queue = null) |
| 12 | * @method static mixed later(\DateTimeInterface|\DateInterval|int $delay, string|object $job, mixed $data = '', string $queue = null) |
| 13 | * @method static mixed laterOn(string $queue, \DateTimeInterface|\DateInterval|int $delay, string|object $job, mixed $data = '') |
| 14 | * @method static mixed push(string|object $job, mixed $data = '', $queue = null) |
| 15 | * @method static mixed pushOn(string $queue, string|object $job, mixed $data = '') |
| 16 | * @method static mixed pushRaw(string $payload, string $queue = null, array $options = []) |
| 17 | * @method static string getConnectionName() |
| 18 | * @method static void assertNotPushed(string|\Closure $job, callable $callback = null) |
| 19 | * @method static void assertNothingPushed() |
| 20 | * @method static void assertPushed(string|\Closure $job, callable|int $callback = null) |
| 21 | * @method static void assertPushedOn(string $queue, string|\Closure $job, callable $callback = null) |
| 22 | * @method static void assertPushedWithChain(string $job, array $expectedChain = [], callable $callback = null) |
| 23 | * |
| 24 | * @see \Illuminate\Queue\QueueManager |
| 25 | * @see \Illuminate\Queue\Queue |
| 26 | * @internal |
| 27 | */ |
| 28 | class Queue extends Facade |
| 29 | { |
| 30 | /** |
| 31 | * Register a callback to be executed to pick jobs. |
| 32 | * |
| 33 | * @param string $workerName |
| 34 | * @param callable $callback |
| 35 | * @return void |
| 36 | */ |
| 37 | public static function popUsing($workerName, $callback) |
| 38 | { |
| 39 | return Worker::popUsing($workerName, $callback); |
| 40 | } |
| 41 | /** |
| 42 | * Replace the bound instance with a fake. |
| 43 | * |
| 44 | * @return \Illuminate\Support\Testing\Fakes\QueueFake |
| 45 | */ |
| 46 | public static function fake() |
| 47 | { |
| 48 | static::swap($fake = new QueueFake(static::getFacadeApplication())); |
| 49 | return $fake; |
| 50 | } |
| 51 | /** |
| 52 | * Get the registered name of the component. |
| 53 | * |
| 54 | * @return string |
| 55 | */ |
| 56 | protected static function getFacadeAccessor() |
| 57 | { |
| 58 | return 'queue'; |
| 59 | } |
| 60 | } |
| 61 |