Skip to content

Internals Awt_data Config Awt_config

Stefan Crkvenjakov edited this page Oct 7, 2026 · 1 revision

awt_data/config/awt_config.php

Framework Internals · Subsystem overview · Developer guide

Source: awt_data/config/awt_config.php · Snapshot 8411f4287706.

Bootstrap scripts wire globals, constants and collaborators in a defined order. These files are executable entry points rather than a reusable class API.

Execution and global state

The script below is executed by its caller. Constants, registered callbacks, global assignments, guards, included files and their order are preserved here. Unlike class methods, entry-point execution can start the CLI loop, route a request, emit output, or terminate the process.

<?php
const AWT_VERSION = "27.0.0";
const PACKAGE_MAX_LOAD_TRY = 5;

const DEBUG = true;

const SHOW_SQL_CONNECTIONS_CALLS = false;

/**
 * # WARNING: Setting this to TRUE enables remote package installations.
 *
 * This setting is intended for development purposes only.
 * It MUST remain FALSE in production environments to ensure security.
 *
 * In order for this to work please also set `DEBUG = true;`.
 */
const REMOTE_INSTALL_FOR_DEVS = false;
const DEV_SECRET = "12345678";

ini_set("post_max_size", "512M");
ini_set("upload_max_filesize", "512M");
ini_set("max_execution_time", "300");
ini_set("max_input_time", "300");

if (DEBUG) {
    ini_set('display_startup_errors', 1);
    ini_set('display_errors', 1);
    error_reporting(E_ALL ^ E_DEPRECATED ^ E_WARNING ^ E_NOTICE);
} else {
    error_reporting(0);
    ini_set('display_errors', 0);
}

Clone this wiki locally