fix syncronize using worker and add duration syncronize
This commit is contained in:
@@ -3,8 +3,13 @@
|
||||
namespace App\Providers;
|
||||
|
||||
use App\Models\Menu;
|
||||
use App\Services\ServiceGoogleSheet;
|
||||
use App\Services\ServicePbgTask;
|
||||
use App\Services\ServiceTabPbgTask;
|
||||
use App\Services\ServiceTokenSIMBG;
|
||||
use App\View\Components\Circle;
|
||||
use Auth;
|
||||
use GuzzleHttp\Client;
|
||||
use Illuminate\Support\Facades\Blade;
|
||||
use Illuminate\Support\Facades\View;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
@@ -19,11 +24,24 @@ class AppServiceProvider extends ServiceProvider
|
||||
*/
|
||||
public function register(): void
|
||||
{
|
||||
$this->app->singleton(GoogleSheetService::class, function () {
|
||||
return new GoogleSheetService();
|
||||
$this->app->bind(Client::class, function () {
|
||||
return new Client();
|
||||
});
|
||||
$this->app->singleton(ServiceSIMBG::class, function ($app) {
|
||||
return new ServiceSIMBG($app->make(GoogleSheetService::class));
|
||||
|
||||
$this->app->bind(ServiceTokenSIMBG::class, function ($app) {
|
||||
return new ServiceTokenSIMBG();
|
||||
});
|
||||
|
||||
$this->app->bind(ServicePbgTask::class, function ($app) {
|
||||
return new ServicePbgTask($app->make(Client::class), $app->make(ServiceTokenSIMBG::class));
|
||||
});
|
||||
|
||||
$this->app->bind(ServiceTabPbgTask::class, function ($app) {
|
||||
return new ServiceTabPbgTask($app->make(Client::class), $app->make(ServiceTokenSIMBG::class));
|
||||
});
|
||||
|
||||
$this->app->bind(ServiceGoogleSheet::class, function ($app) {
|
||||
return new ServiceGoogleSheet();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user