Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
luoxiaojun
committed
Nov 15, 2018
1 parent
ddc532e
commit ed8fdf1
Showing
8 changed files
with
61 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
cd ../tars/ | ||
|
||
php ../src/vendor/phptars/tars2php/src/tars2php.php ./tars.proto.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?php | ||
// 以namespace的方式,在psr4的框架下对代码进行加载 | ||
return array( | ||
'home-api' => '\App\Tars\servant\{appName}\{serverName}\{objName}\{servantName}', //根据实际情况替换,遵循PSR-4即可,与tars.proto.php配置一致 | ||
'home-class' => '\App\Tars\impl\{servantImplName}', //根据实际情况替换,遵循PSR-4即可 | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?php | ||
return array( | ||
'appName' => '{appName}', //根据实际情况替换 | ||
'serverName' => '{serverName}', //根据实际情况替换 | ||
'objName' => '{objName}', //根据实际情况替换 | ||
); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
return array( | ||
'appName' => '{appName}', //根据实际情况替换 | ||
'serverName' => '{serverName}', //根据实际情况替换 | ||
'objName' => '{objName}', //根据实际情况替换 | ||
'withServant' => true, //决定是服务端,还是客户端的自动生成,true为服务端 | ||
'tarsFiles' => array( | ||
//根据实际情况填写 | ||
), | ||
'dstPath' => '../src/app/Tars/servant', //可替换,遵循PSR-4规则 | ||
'namespacePrefix' => 'App\Tars\servant', //可替换,遵循PSR-4规则 | ||
); |