File tree Expand file tree Collapse file tree
RoadRunnerBridge/resources/config
resources/app/src/Endpoint/Temporal Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ enum ComposerPackages: string
2121 case CycleBridge = 'spiral/cycle-bridge:^2.11 ' ;
2222 case DoctrineCollections = 'doctrine/collections:^2.3 ' ;
2323 case LoophpCollections = 'loophp/collection:^7.6 ' ;
24- case IlluminateCollections = 'illuminate/collections:^12.0 ' ;
24+ case IlluminateCollections = 'illuminate/collections:8 - 12 ' ;
2525 case RoadRunnerGRPC = 'spiral/roadrunner-grpc:^3.5 ' ;
2626 case SpiralValidator = 'spiral/validator:^1.5 ' ;
2727 case SymfonyValidator = 'spiral-packages/symfony-validator:^1.5 ' ;
Original file line number Diff line number Diff line change 1313 * You can download the binary here: https://github.com/roadrunner-server/roadrunner/releases
1414 * Default: null
1515 */
16- 'binaryPath ' => directory ('root ' ) . 'protoc-gen-php-grpc ' ,
16+ 'binaryPath ' => directory ('root ' ) . 'protoc-gen-php-grpc ' . (\ PHP_OS_FAMILY === ' Windows ' ? ' .exe ' : '' ) ,
1717
1818 /**
1919 * Path, where generated DTO files put.
Original file line number Diff line number Diff line change 1010use Installer \Internal \Readme \Section ;
1111use Installer \Module \TemporalBridge \Generator \Bootloaders ;
1212use Installer \Module \TemporalBridge \Generator \Env ;
13+ use Installer \Module \TemporalBridge \Generator \Skeleton ;
1314
1415final class Package extends BasePackage
1516{
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ declare (strict_types=1 );
4+
5+ namespace App \Endpoint \Temporal ;
6+
7+ use Spiral \TemporalBridge \Attribute \AssignWorker ;
8+ use Temporal \Workflow \WorkflowInterface ;
9+ use Temporal \Workflow \WorkflowMethod ;
10+
11+ /**
12+ * This is a simple ping workflow that does nothing.
13+ *
14+ * @link https://docs.temporal.io/develop/php/
15+ */
16+ #[AssignWorker('my-task-queue ' )]
17+ #[WorkflowInterface]
18+ class Ping
19+ {
20+ #[WorkflowMethod(name: 'ping ' )]
21+ public function handle ()
22+ {
23+ return 'pong ' ;
24+ }
25+ }
You can’t perform that action at this time.
0 commit comments