Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. namespace REV2;
  2.  
  3. use Illuminate\Support\ServiceProvider;
  4.  
  5. class REV2ServiceProvider extends ServiceProvider
  6. {
  7. protected $defer = true;
  8.  
  9. public function register()
  10. {
  11. $this->app->bind(
  12. "REV2\services\LoginServiceInterface",
  13. "REV2\services\LoginService"
  14. );
  15.  
  16. $this->app->bind(
  17. "REV2\repositories\UserRepositoryInterface",
  18. "REV2\repositories\UserRepository"
  19. );
  20.  
  21. $this->app->bind(
  22. "REV2\repositories\ContactRepositoryInterface",
  23. "REV2\repositories\ContactRepository"
  24. );
  25. }
  26.  
  27. public function provides()
  28. {
  29. return [
  30. "REV2\services\LoginServiceInterface",
  31. "REV2\repositories\UserRepositoryInterface",
  32. "REV2\repositories\ContactRepositoryInterface"
  33. ];
  34. }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement