Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PHP][Silex] rename silex-PHP to php-silex #6612

Merged
merged 1 commit into from
Oct 3, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.