create-prisma-php-app 4.4.2 → 4.4.3
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 +8 -0
- package/package.json +1 -1
package/dist/bootstrap.php
CHANGED
|
@@ -28,6 +28,7 @@ use PP\PHPX\TemplateCompiler;
|
|
|
28
28
|
use PP\CacheHandler;
|
|
29
29
|
use PP\ErrorHandler;
|
|
30
30
|
use PP\Attributes\Exposed;
|
|
31
|
+
use PP\Attributes\ExposedRegistry;
|
|
31
32
|
use PP\Streaming\SSE;
|
|
32
33
|
use PP\Security\RateLimiter;
|
|
33
34
|
use PP\Env;
|
|
@@ -974,6 +975,13 @@ final class Bootstrap extends RuntimeException
|
|
|
974
975
|
|
|
975
976
|
private static function dispatchFunction(string $fn, mixed $args)
|
|
976
977
|
{
|
|
978
|
+
if (!function_exists($fn)) {
|
|
979
|
+
$resolved = ExposedRegistry::resolveFunction($fn);
|
|
980
|
+
if ($resolved) {
|
|
981
|
+
$fn = $resolved;
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
|
|
977
985
|
if (!self::isFunctionAllowed($fn)) {
|
|
978
986
|
return ['success' => false, 'error' => 'Function not callable from client'];
|
|
979
987
|
}
|