create-prisma-php-app 1.22.507 → 1.23.0
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.
- package/dist/bootstrap.php +3 -5
- package/dist/index.js +26 -774
- package/dist/prisma-php.js +2 -4
- package/dist/settings/bs-config.ts +87 -0
- package/dist/settings/files-list.ts +51 -0
- package/dist/settings/project-name.ts +86 -0
- package/dist/settings/request-methods.php +1 -1
- package/dist/settings/restart-websocket.ts +57 -0
- package/dist/settings/swagger-config.ts +66 -0
- package/dist/settings/utils.ts +14 -0
- package/dist/tsconfig.json +5 -5
- package/package.json +1 -1
- package/dist/settings/bs-config.js +0 -75
- package/dist/settings/files-list.js +0 -43
- package/dist/settings/project-name.js +0 -60
- package/dist/settings/restart-websocket.js +0 -40
- package/dist/settings/swagger-config.js +0 -75
package/dist/bootstrap.php
CHANGED
|
@@ -37,7 +37,7 @@ function determineContentToInclude()
|
|
|
37
37
|
* ================================================
|
|
38
38
|
*/
|
|
39
39
|
|
|
40
|
-
$isDirectAccessToPrivateRoute = preg_match('
|
|
40
|
+
$isDirectAccessToPrivateRoute = preg_match('/_/', $uri);
|
|
41
41
|
if ($isDirectAccessToPrivateRoute) {
|
|
42
42
|
$sameSiteFetch = false;
|
|
43
43
|
$serverFetchSite = $_SERVER['HTTP_SEC_FETCH_SITE'] ?? '';
|
|
@@ -335,9 +335,7 @@ function singleDynamicRoute($uriSegments, $routeSegments)
|
|
|
335
335
|
|
|
336
336
|
function checkForDuplicateRoutes()
|
|
337
337
|
{
|
|
338
|
-
if ($_ENV['APP_ENV'] !== 'development')
|
|
339
|
-
return;
|
|
340
|
-
}
|
|
338
|
+
if ($_ENV['APP_ENV'] !== 'development') return;
|
|
341
339
|
|
|
342
340
|
global $_filesListRoutes;
|
|
343
341
|
$normalizedRoutesMap = [];
|
|
@@ -760,7 +758,7 @@ try {
|
|
|
760
758
|
$_isContentIncluded = true;
|
|
761
759
|
}
|
|
762
760
|
|
|
763
|
-
if (!empty($_contentToInclude)) {
|
|
761
|
+
if (!empty($_contentToInclude) && !empty($_fileToInclude)) {
|
|
764
762
|
if (!$_isParentLayout) {
|
|
765
763
|
ob_start();
|
|
766
764
|
require_once $_contentToInclude;
|