create-prisma-php-app 1.22.1 → 1.22.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.
@@ -685,7 +685,6 @@ $mainLayoutFooter = [];
685
685
 
686
686
  try {
687
687
  $_determineContentToInclude = determineContentToInclude();
688
- checkForDuplicateRoutes();
689
688
  $_contentToInclude = $_determineContentToInclude['path'] ?? '';
690
689
  $_layoutsToInclude = $_determineContentToInclude['layouts'] ?? [];
691
690
  $uri = $_determineContentToInclude['uri'] ?? '';
@@ -694,6 +693,9 @@ try {
694
693
  if (is_file($_contentToInclude)) {
695
694
  $_fileToInclude = basename($_contentToInclude); // returns the file name
696
695
  }
696
+ $metadata = $_metadataArray[$uri] ?? ($_metadataArray['default'] ?? []);
697
+
698
+ checkForDuplicateRoutes();
697
699
  authenticateUserToken();
698
700
 
699
701
  if (empty($_contentToInclude)) {
@@ -741,7 +743,6 @@ try {
741
743
  exit;
742
744
  }
743
745
 
744
- $metadata = $_metadataArray[$uri] ?? ($_metadataArray['default'] ?? []);
745
746
  $_parentLayoutPath = APP_PATH . '/layout.php';
746
747
  $_isParentLayout = !empty($_layoutsToInclude) && strpos($_layoutsToInclude[0], 'src/app/layout.php') !== false;
747
748
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma-php-app",
3
- "version": "1.22.1",
3
+ "version": "1.22.2",
4
4
  "description": "Prisma-PHP: A Revolutionary Library Bridging PHP with Prisma ORM",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",