Queue.php 591 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace Illuminate\Support\Facades;
  3. use Illuminate\Support\Testing\Fakes\QueueFake;
  4. /**
  5. * @see \Illuminate\Queue\QueueManager
  6. * @see \Illuminate\Queue\Queue
  7. */
  8. class Queue extends Facade
  9. {
  10. /**
  11. * Replace the bound instance with a fake.
  12. *
  13. * @return void
  14. */
  15. public static function fake()
  16. {
  17. static::swap(new QueueFake(static::getFacadeApplication()));
  18. }
  19. /**
  20. * Get the registered name of the component.
  21. *
  22. * @return string
  23. */
  24. protected static function getFacadeAccessor()
  25. {
  26. return 'queue';
  27. }
  28. }