Skip to content

Commit 70150d4

Browse files
committed
Distinguish between success and error
1 parent 94e367f commit 70150d4

21 files changed

Lines changed: 1235 additions & 73 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ RUN apt-get update && \
2020
CMD protoc \
2121
--proto_path=schema/ \
2222
--php_out=php/ \
23-
--go_out=go/ \
23+
--go_out=paths=source_relative:go/ \
2424
$(find schema -name '*.proto')

bin/generatePhpFactories

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ function generateFactories(string $packageNamespace, string $packagePath, array
3737

3838
$factoryName = str_replace('\\', '', $matches['namespace']) . $matches['version'] . 'Factory';
3939
$factoryPath = str_replace('\\', '/', $matches['namespace']) . '/' . $matches['version'];
40+
$methodName = 'create' . str_replace('\\', '_', $matches['message']);
4041

4142
$factories[$factoryName] ??= [
4243
'path' => $packagePath . '/' . $factoryPath . '/' . $factoryName . '.php',
@@ -46,7 +47,7 @@ function generateFactories(string $packageNamespace, string $packagePath, array
4647
];
4748

4849
$factories[$factoryName]['methods'][] = [
49-
'name' => 'create' . $matches['message'],
50+
'name' => $methodName,
5051
'returnType' => '\\' . $class
5152
];
5253
}

go/chat/v1/messaging.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/common/v1/messaging.pb.go

Lines changed: 333 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)