Advertisement
Guest User

Untitled

a guest
Oct 25th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. <?php namespace App\Providers;
  2.  
  3. use App\Repositories\Storage\serviceCall3rdRepository;
  4. use Illuminate\Support\Facades\Request;
  5. use Illuminate\Support\ServiceProvider;
  6.  
  7. class AppServiceProvider extends ServiceProvider
  8. {
  9.  
  10. /**
  11. * Bootstrap any application services.
  12. *
  13. * @return void
  14. */
  15. public function boot()
  16. {
  17.  
  18. }
  19.  
  20. public function register()
  21. {
  22. $this->app->bind('App\Repositories\Interfaces\servicePackageInterface', function () {
  23. $serviceCall3rdRepository = $this->app->make(serviceCall3rdRepository::class);
  24. return new \App\Repositories\Storage\servicePackageRepository($serviceCall3rdRepository, \Request::segment(2));
  25. });
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement