feat: единая админка runtime-конфигов и indpic (#22)
deploy-preland / deploy zoomstage.online (push) Successful in 1m1s
deploy-preland / deploy zoomstage.online (push) Successful in 1m1s
This commit is contained in:
1 parent
5b6b2d2053
commit
9515c1c62b
52 files changed
+2459
-34
No files matched your search
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
if (is_file(__DIR__ . '/vendor/autoload.php')) require __DIR__ . '/vendor/autoload.php';
|
||||
spl_autoload_register(static function (string $class): void {
|
||||
$prefix = 'PrelandAdmin\\';
|
||||
if (str_starts_with($class, $prefix)) {
|
||||
$path = __DIR__ . '/src/' . substr($class, strlen($prefix)) . '.php';
|
||||
if (is_file($path)) require $path;
|
||||
}
|
||||
});
|
||||
umask(0077);
|
||||
if (!defined('PRELAND_ADMIN_SUPERVISOR') && class_exists(Imagick::class)) {
|
||||
Imagick::setResourceLimit(Imagick::RESOURCETYPE_MEMORY, 134217728);
|
||||
Imagick::setResourceLimit(Imagick::RESOURCETYPE_MAP, 268435456);
|
||||
Imagick::setResourceLimit(Imagick::RESOURCETYPE_DISK, 536870912);
|
||||
Imagick::setResourceLimit(Imagick::RESOURCETYPE_TIME, 60);
|
||||
Imagick::setResourceLimit(Imagick::RESOURCETYPE_THREAD, 2);
|
||||
}
|
||||
Reference in new issue
Block a user