/** * Setup a new environment instance used to fulfill the client request. * * @param bool $selfRegister TRUE if the environment must be assigned as the currently valid one */ public function __construct(array $userData = [], $selfRegister = false, $loadApplication = false) { //call the collection constructor of this own class parent::__construct($userData); //register the current environment if ($selfRegister) { self::RegisterEnvironment($this); } if ($loadApplication) { //load the server configuration $this->loadConfiguration(); } }