This commit is contained in:
2026-05-09 01:18:51 +02:00
parent 7116ee4619
commit 959970c150
132 changed files with 21310 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*/
public function register(): void
{
//
}
/**
* Bootstrap any application services.
*/
public function boot(): void
{
//
}
}

View File

@@ -0,0 +1,29 @@
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Temporal\Client\GRPC\ServiceClient;
use Temporal\Client\WorkflowClient;
use Temporal\Client\WorkflowClientInterface;
class TemporalServiceProvider extends ServiceProvider
{
public function register(): void
{
$this->app->singleton(WorkflowClientInterface::class, function () {
return WorkflowClient::create(
ServiceClient::create(config('temporal.address'))
);
});
$this->app->alias(WorkflowClientInterface::class, WorkflowClient::class);
}
public function boot(): void
{
$this->publishes([
__DIR__ . '/../../config/temporal.php' => config_path('temporal.php'),
], 'temporal-config');
}
}