Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace REV2;
- use Illuminate\Support\ServiceProvider;
- class REV2ServiceProvider extends ServiceProvider
- {
- protected $defer = true;
- public function register()
- {
- $this->app->bind(
- "REV2\services\LoginServiceInterface",
- "REV2\services\LoginService"
- );
- $this->app->bind(
- "REV2\repositories\UserRepositoryInterface",
- "REV2\repositories\UserRepository"
- );
- $this->app->bind(
- "REV2\repositories\ContactRepositoryInterface",
- "REV2\repositories\ContactRepository"
- );
- }
- public function provides()
- {
- return [
- "REV2\services\LoginServiceInterface",
- "REV2\repositories\UserRepositoryInterface",
- "REV2\repositories\ContactRepositoryInterface"
- ];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement