create-prisma-php-app 3.4.1 → 3.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -708,7 +708,7 @@ await generateSwaggerDocs(modelsToGenerate);
|
|
|
708
708
|
await swaggerConfig();
|
|
709
709
|
|
|
710
710
|
if (prismaSchemaConfigJson.generatePhpClasses) {
|
|
711
|
-
spawn("npx", ["
|
|
711
|
+
spawn("npx", ["ppo", "generate"], {
|
|
712
712
|
stdio: "inherit",
|
|
713
713
|
shell: true,
|
|
714
714
|
});
|
|
@@ -108,12 +108,14 @@ class TemplateCompiler
|
|
|
108
108
|
);
|
|
109
109
|
|
|
110
110
|
if (!isset($_SERVER['HTTP_X_PPHP_NAVIGATION'])) {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
111
|
+
if (!PrismaPHPSettings::$option->backendOnly) {
|
|
112
|
+
$htmlContent = preg_replace(
|
|
113
|
+
'/<body([^>]*)>/i',
|
|
114
|
+
'<body$1 hidden>',
|
|
115
|
+
$htmlContent,
|
|
116
|
+
1
|
|
117
|
+
);
|
|
118
|
+
}
|
|
117
119
|
}
|
|
118
120
|
|
|
119
121
|
$bodyClosePattern = '/(<\/body\s*>)/i';
|