Skip to content

Commit

Permalink
rename silex-PHP to php-silex (#6612)
Browse files Browse the repository at this point in the history
  • Loading branch information
wing328 authored Oct 3, 2017
1 parent f62b81f commit 5175281
Show file tree
Hide file tree
Showing 14 changed files with 16 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ fi

# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
ags="$@ generate -t modules/swagger-codegen/src/main/resources/silex -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l silex-PHP -o samples/server/petstore/silex"
ags="$@ generate -t modules/swagger-codegen/src/main/resources/php-silex -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l php-silex -o samples/server/petstore/php-silex"

java $JAVA_OPTS -jar $executable $ags
10 changes: 10 additions & 0 deletions bin/windows/php-silex-petstore.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
set executable=.\modules\swagger-codegen-cli\target\swagger-codegen-cli.jar

If Not Exist %executable% (
mvn clean package
)

REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M
set ags=generate -i modules\swagger-codegen\src\test\resources\2_0\petstore.yaml -l php-silex -o samples\server\petstore\php-silex

java %JAVA_OPTS% -jar %executable% %ags%
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ public SilexServerCodegen() {

modelPackage = packagePath + "/lib/models";
apiPackage = packagePath + "/lib";
outputFolder = "generated-code/silex";
outputFolder = "generated-code/php-silex";

// no model, api files
modelTemplateFiles.clear();
apiTemplateFiles.clear();

embeddedTemplateDir = templateDir = "silex";
embeddedTemplateDir = templateDir = "php-silex";

setReservedWordsLowerCase(
Arrays.asList(
Expand Down Expand Up @@ -103,12 +103,12 @@ public CodegenType getTag() {

@Override
public String getName() {
return "silex-PHP";
return "php-silex";
}

@Override
public String getHelp() {
return "Generates a Silex server library.";
return "Generates a PHP Silex server library.";
}

@Override
Expand Down
1 change: 1 addition & 0 deletions samples/server/petstore/php-silex/.swagger-codegen/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.3.0-SNAPSHOT
1 change: 0 additions & 1 deletion samples/server/petstore/silex/.swagger-codegen/VERSION

This file was deleted.

0 comments on commit 5175281

Please sign in to comment.