Bus.php 614 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace Illuminate\Support\Facades;
  3. use Illuminate\Support\Testing\Fakes\BusFake;
  4. use Illuminate\Contracts\Bus\Dispatcher as BusDispatcherContract;
  5. /**
  6. * @see \Illuminate\Contracts\Bus\Dispatcher
  7. */
  8. class Bus 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 BusFake);
  18. }
  19. /**
  20. * Get the registered name of the component.
  21. *
  22. * @return string
  23. */
  24. protected static function getFacadeAccessor()
  25. {
  26. return BusDispatcherContract::class;
  27. }
  28. }