Allow memory_limit to be configurable

This commit is contained in:
Alejandro Celaya
2024-04-09 08:47:01 +02:00
parent 75f6f8dd18
commit 8a273e01e9
5 changed files with 5 additions and 2 deletions

View File

@@ -12,6 +12,8 @@ chdir(dirname(__DIR__));
require 'vendor/autoload.php';
// Set a default memory limit, but allow custom values
ini_set('memory_limit', EnvVars::MEMORY_LIMIT->loadFromEnv('512M'));
// This is one of the first files loaded. Configure the timezone here
date_default_timezone_set(EnvVars::TIMEZONE->loadFromEnv(date_default_timezone_get()));