PHP code example of buyanov / symfony-temporal-worker

1. Go to this page and download the library: Download buyanov/symfony-temporal-worker library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

buyanov / symfony-temporal-worker example snippets


#[AutoconfigureTag('temporal.activity')]

#[AutoconfigureTag('temporal.workflow')]




namespace App\Temporal\Activity;

use Symfony\Component\DependencyInjection\Attribute\AutoconfigureTag;
use Temporal\Activity\ActivityInterface;
use Temporal\Activity\ActivityMethod;

#[AutoconfigureTag('temporal.activity')]
#[ActivityInterface('ProductProperty.')]
interface ProductPropertyActivityInterface
{
    #[ActivityMethod('createOrUpdateProductProperty')]
    public function createOrUpdateProductProperty(string $productGuid, string $propertyNameGuid, string $value): string;
}