create-prisma-php-app 1.10.21 → 1.11.1
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
CHANGED
|
@@ -91,7 +91,7 @@ function checkForDuplicateRoutes()
|
|
|
91
91
|
if (count($originalRoutes) > 1 && strpos($normalizedRoute, DIRECTORY_SEPARATOR) !== false) {
|
|
92
92
|
$directGroupMatchFound = false;
|
|
93
93
|
foreach ($originalRoutes as $originalRoute) {
|
|
94
|
-
if (preg_match('
|
|
94
|
+
if (preg_match('~^\\.\\/src\\/app[\\/\\\\]\\(.*?\\)[\\/\\\\].*?\\.php$~', $originalRoute, $matches)) {
|
|
95
95
|
$directGroupMatchFound = true;
|
|
96
96
|
}
|
|
97
97
|
}
|
|
@@ -123,9 +123,9 @@ class StateManager
|
|
|
123
123
|
if ($clearFromStorage) {
|
|
124
124
|
// Save the updated state to the session or clear it
|
|
125
125
|
if (empty($this->state)) {
|
|
126
|
-
unset($_SESSION[
|
|
126
|
+
unset($_SESSION[self::APP_STATE]);
|
|
127
127
|
} else {
|
|
128
|
-
$_SESSION[
|
|
128
|
+
$_SESSION[self::APP_STATE] = json_encode($this->state);
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
}
|