PipelineServiceProvider.php 750B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. namespace Illuminate\Pipeline;
  3. use Illuminate\Support\ServiceProvider;
  4. use Illuminate\Contracts\Pipeline\Hub as PipelineHubContract;
  5. class PipelineServiceProvider extends ServiceProvider
  6. {
  7. /**
  8. * Indicates if loading of the provider is deferred.
  9. *
  10. * @var bool
  11. */
  12. protected $defer = true;
  13. /**
  14. * Register the service provider.
  15. *
  16. * @return void
  17. */
  18. public function register()
  19. {
  20. $this->app->singleton(
  21. PipelineHubContract::class, Hub::class
  22. );
  23. }
  24. /**
  25. * Get the services provided by the provider.
  26. *
  27. * @return array
  28. */
  29. public function provides()
  30. {
  31. return [
  32. PipelineHubContract::class,
  33. ];
  34. }
  35. }