This commit is contained in:
1 parent
d086b29bcc
commit
a1ac81a73a
29 files changed
+2349
-17899
No files matched your search
@@ -2,6 +2,9 @@
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use App\Services\BookInformation\BookLookupService;
|
||||
use App\Services\BookInformation\CachedService;
|
||||
use App\Services\BookInformation\GoogleBooks;
|
||||
use Illuminate\Pagination\Paginator;
|
||||
use Schema;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
@@ -23,6 +26,8 @@ class AppServiceProvider extends ServiceProvider {
|
||||
* @return void
|
||||
*/
|
||||
public function register() {
|
||||
//
|
||||
$this->app->singleton(BookLookupService::class, function() {
|
||||
return new CachedService(new GoogleBooks());
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user