This repository was archived by the owner on Jan 12, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
src/Allegro/Protobuf/Compiler Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -111,9 +111,7 @@ PHP Protobuf comes with Google's protoc compiler plugin. You can run in directly
111
111
112
112
or pass it to the *protoc*:
113
113
114
- protoc --plugin=protoc-gen-php.php --php_out=output_dir foo.proto
115
-
116
- Put `protoc-php-gen.php` on the *PATH* or pass absolute path to `protoc`.
114
+ protoc --plugin=protoc-gen-allegrophp=protoc-gen-php.php --allegrophp_out=output_dir foo.proto
117
115
118
116
On Windows use `protoc-gen-php.bat` instead.
119
117
Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ private function runProtoc($pluginExecutable)
127
127
$ this ->checkProtoc ($ protocExecutable );
128
128
129
129
$ cmd [] = $ protocExecutable ;
130
- $ cmd [] = '--plugin=protoc-gen-php = ' . escapeshellarg ($ pluginExecutable );
130
+ $ cmd [] = '--plugin=protoc-gen-allegrophp = ' . escapeshellarg ($ pluginExecutable );
131
131
132
132
if ($ result ->options ['proto_path ' ]) {
133
133
foreach ($ result ->options ['proto_path ' ] as $ protoPath ) {
@@ -136,7 +136,7 @@ private function runProtoc($pluginExecutable)
136
136
}
137
137
138
138
$ customArgs = $ this ->buildCustomArguments ($ result );
139
- $ cmd [] = '--php_out = ' . escapeshellarg ($ customArgs . ': ' . $ result ->options ['out ' ]);
139
+ $ cmd [] = '--allegrophp_out = ' . escapeshellarg ($ customArgs . ': ' . $ result ->options ['out ' ]);
140
140
141
141
foreach ($ result ->args ['file ' ] as $ file ) {
142
142
$ cmd [] = escapeshellarg ($ file );
@@ -200,4 +200,4 @@ private function buildCustomArguments($result)
200
200
201
201
return http_build_query ($ args , '' , '& ' );
202
202
}
203
- }
203
+ }
You can’t perform that action at this time.
0 commit comments