Skip to content

Commit e0713f3

Browse files
committed
add missing php prefix
1 parent fd47051 commit e0713f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/gotask/generator.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ func body(namespace *string, class *Class) string {
9696
}
9797

9898
func generatePHP(receiver interface{}) error {
99-
namespace := property(receiver, "Namespace", "App\\GoTask")
99+
namespace := property(receiver, "PHPNamespace", "App\\GoTask")
100100
class := reflectStruct(receiver)
101-
dirPath := property(receiver, "Path", "./../app/GoTask")
101+
dirPath := property(receiver, "PHPPath", "./../app/GoTask")
102102
err := os.MkdirAll(dirPath, os.FileMode(0755))
103103
if err != nil {
104104
return errors.Wrap(err, "cannot create dir for php files")

0 commit comments

Comments
 (0)