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.
@@ -37,7 +37,7 @@ function determineContentToInclude()
37
37
  * ================================================
38
38
  */
39
39
 
40
- $isDirectAccessToPrivateRoute = preg_match('/\/_/', $uri);
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;