PHP Classes

File: bootstrap/loaders/globals/func-env-init.php

Recommend this page to a friend!
  Classes of Francisco Núñez   Catalyst   bootstrap/loaders/globals/func-env-init.php   Download  
File: bootstrap/loaders/globals/func-env-init.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Catalyst
Framework to develop MVC-based PHP applications
Author: By
Last change:
Date: 2 days ago
Size: 1,313 bytes
 

Contents

Class file image Download
<?php

declare(strict_types=1);

/**************************************************************************************
 *
 * Catalyst PHP Framework
 * PHP Version 8.3 (Required).
 *
 * @package Catalyst
 * @subpackage Public
 * @see https://github.com/arcanisgk/catalyst
 *
 * @author Walter Nuñez (arcanisgk/original founder) <[email protected]>
 * @copyright 2023 - 2025
 * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
 *
 * @note This program is distributed in the hope that it will be useful
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE.
 *
 * @category Framework
 * @filesource
 *
 * @link https://catalyst.dock Local development URL
 *
 */


use Catalyst\Helpers\Config\ConfigManager;

if (!
defined('APP_CONFIGURATION')) {

   
define('APP_CONFIGURATION', ConfigManager::getInstance());
}

if (!
function_exists('getConfigurationParameters')) {
    function
getConfigurationParameters(string $paramName): array
    {

        return
APP_CONFIGURATION->get($paramName);
    }
}


if (!
defined('IS_CONFIGURED')) {

   
// Define IS_CONFIGURED constant based on configuration status

   
define('IS_CONFIGURED', APP_CONFIGURATION->isConfigured());
}