1234567891011121314151617181920212223242526 |
- <?php
- /*
- * This file is part of the Jiannei/lumen-api-starter.
- *
- * (c) Jiannei <longjian.huang@foxmail.com>
- *
- * This source file is subject to the MIT license that is bundled
- * with this source code in the file LICENSE.
- */
- namespace App\Providers;
- use Prettus\Repository\Providers\LumenRepositoryServiceProvider;
- class RepositoryServiceProvider extends LumenRepositoryServiceProvider
- {
- /**
- * Bootstrap services.
- */
- public function boot()
- {
- $this->app->bind(\App\Contracts\Repositories\UserRepository::class, \App\Repositories\Eloquent\UserRepositoryEloquent::class);
- $this->app->bind(\App\Contracts\Repositories\PostRepository::class, \App\Repositories\Eloquent\PostRepositoryEloquent::class);
- }
- }
|