Skip to content

Commit 4730662

Browse files
authored
Merge pull request #7 from roadrunner-php/new-temporal-api
Generate new Temporal API DTOs
2 parents f370849 + 842cefe commit 4730662

File tree

175 files changed

+7527
-2518
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

175 files changed

+7527
-2518
lines changed

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@
3434
"php": "^8.1",
3535
"google/protobuf": "^v3.22"
3636
},
37+
"suggest": {
38+
"google/common-protos": "Required for Temporal API"
39+
},
3740
"conflict": {
3841
"temporal/sdk": "<2.6.0"
3942
},

generate.sh

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ for i in `find ./api -name "*.proto" -type f`; do
1010
--experimental_allow_proto3_optional
1111
done
1212

13-
1413
echo "Generating Temporal API"
1514

1615
GRPC_PLUGIN=`which grpc_php_plugin`
@@ -28,4 +27,18 @@ for i in `find ./api/third_party/api -name "*.proto" -type f`; do
2827
--plugin=protoc-gen-grpc=$GRPC_PLUGIN \
2928
--grpc_out=generated \
3029
--experimental_allow_proto3_optional
31-
done
30+
done
31+
32+
echo "Generating Gogo proto"
33+
34+
for i in `find ./proto -name "*.proto" -type f`; do
35+
protoc \
36+
--proto_path=proto \
37+
--php_out=generated $i \
38+
--experimental_allow_proto3_optional
39+
done
40+
41+
echo "Removing Google Protobuf files"
42+
43+
rm -rf ./generated/Google
44+
rm -rf ./generated/GPBMetadata/Google

generated/GPBMetadata/Temporal/Api/Batch/V1/Message.php

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
-163 Bytes
Binary file not shown.
464 Bytes
Binary file not shown.
197 Bytes
Binary file not shown.
52 Bytes
Binary file not shown.
40 Bytes
Binary file not shown.
188 Bytes
Binary file not shown.
28 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)