create-prisma-php-app 1.20.523 → 1.20.524

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.
@@ -661,7 +661,7 @@ try {
661
661
  authenticateUserToken();
662
662
 
663
663
  if (empty($_contentToInclude)) {
664
- if (!$isXFilRequest && $_prismaPHPSettings['backendOnly'] === "true") {
664
+ if (!$isXFilRequest && $_prismaPHPSettings['backendOnly']) {
665
665
  // Set the header and output a JSON response for permission denied
666
666
  header('Content-Type: application/json');
667
667
  echo json_encode([
@@ -685,7 +685,7 @@ try {
685
685
  readfile($filePath);
686
686
  }
687
687
  exit;
688
- } else if ($_prismaPHPSettings['backendOnly'] === "true") {
688
+ } else if ($_prismaPHPSettings['backendOnly']) {
689
689
  // Set the header and output a JSON response for file not found
690
690
  header('Content-Type: application/json');
691
691
  echo json_encode([
@@ -1,30 +1,30 @@
1
1
  <?php
2
2
 
3
3
  /**
4
- * @var string SETTINGS_PATH - The absolute path to the settings directory
4
+ * @var string SETTINGS_PATH - The absolute path to the settings directory ./settings
5
5
  */
6
6
  define("SETTINGS_PATH", dirname(__FILE__));
7
7
  /**
8
- * @var string PUBLIC_PATH - The absolute path to the public directory
8
+ * @var string PUBLIC_PATH - The absolute path to the public directory ./public
9
9
  */
10
10
  define("PUBLIC_PATH", dirname(SETTINGS_PATH) . "/public");
11
11
  /**
12
- * @var string PRISMA_LIB_PATH - The absolute path to the Prisma library directory
12
+ * @var string PRISMA_LIB_PATH - The absolute path to the Prisma library directory ./src/Lib/Prisma
13
13
  */
14
14
  define("PRISMA_LIB_PATH", dirname(SETTINGS_PATH) . "/src/Lib/Prisma");
15
15
  /**
16
- * @var string SRC_PATH - The absolute path to the src directory
16
+ * @var string SRC_PATH - The absolute path to the src directory ./src
17
17
  */
18
18
  define("SRC_PATH", dirname(SETTINGS_PATH) . "/src");
19
19
  /**
20
- * @var string APP_PATH - The absolute path to the app directory
20
+ * @var string APP_PATH - The absolute path to the app directory ./src/app
21
21
  */
22
22
  define("APP_PATH", dirname(SETTINGS_PATH) . "/src/app");
23
23
  /**
24
- * @var string LIB_PATH - The absolute path to the layout directory
24
+ * @var string LIB_PATH - The absolute path to the layout directory ./src/Lib
25
25
  */
26
26
  define("LIB_PATH", dirname(SETTINGS_PATH) . "/src/Lib");
27
27
  /**
28
- * @var string DOCUMENT_PATH - The absolute path to the layout directory
28
+ * @var string DOCUMENT_PATH - The absolute path to the layout directory ./
29
29
  */
30
30
  define("DOCUMENT_PATH", dirname(SETTINGS_PATH));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma-php-app",
3
- "version": "1.20.523",
3
+ "version": "1.20.524",
4
4
  "description": "Prisma-PHP: A Revolutionary Library Bridging PHP with Prisma ORM",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",