$config)) { $handler = sprintf( self::CONFIG_NS_PATTERN, ucfirst($config) ); $this->$config = new $handler( isset($params[$config]) && is_array($params[$config]) ? $params[$config] : [] ); } // Clean params if (isset($params[$config])) { unset($params[$config]); } } // Check if some parameters have been ignored. if (count($params)) { throw new Exception( "Following configuration parameters have been ignored:\n" . json_encode($params, JSON_PRETTY_PRINT) ); } } /** * Get a configuration dedicated handler * * @return \ActivityPhp\Server\Configuration\LoggerConfiguration * | \ActivityPhp\Server\Configuration\InstanceConfiguration * | \ActivityPhp\Server\Configuration\HttpConfiguration * | string * @throws \Exception */ public function getConfig(string $parameter) { // Get configuration identifier $xpt = explode('.', $parameter, 2); if (isset($this->{$xpt[0]})) { if (! isset($xpt[1])) { return $this->{$xpt[0]}; } return $this->{$xpt[0]}->get($xpt[1]); } throw new Exception( "Configuration handler '{$xpt[0]}' does not exist" ); } } __halt_compiler();----SIGNATURE:----r/2Ozt3WbOpWc4K3ZLViWLAkR0/RGpVyfFgTAP+ksOnsGbLAF1L8xDMWZsYUqxv57v+jmLDMZJsGKJh4XSddyHeuSqYCPqUiHmio1DqimVuzwLzbbN7WgkaMS5Z7R0L0POzX9FoKR4Wv+Yfu8OQXdKisJ2MR8321L+4kGNCsD7QqNPMJGogIMgYJkNGA2UeSgIFqwdFksQlA3Y3ChaEueewdUHoDuXrl3/NHQ7adNmItH5vlN9kdRlXHIcYkgET0l92T/xFODkP60zXqRAbwjzb/KvngAdxHM9FoqaqlskybC5l9lsABf7epHB0Oa0X9N8B0/zpeLeQ7dg1hU2k5U10wJp1K4B0rWMvVZ6afP8ncuQ52oTZ2wwv5oBS5E955wMQtKcf9RbVb+rLatEWroIRG3AdCmDxl7775VymigeDjmAM/TLc3VDiBdzcMy6T0UciXXAzi2oMkHDll8u1RNhuDLC0FzWd8/aWVKILjFPaELbY4RZpZLO/aQeZWvH7iqwHqdOtO4tUoU2MkaFUk7djKgGrN/RQYgcDGV4eAdqVfQQYKtpwncGYFtm+HygrLxzN+rPjtGOh0SNyxUagb1hIP4opgc1lHajDUuboIbgOu1wH/O1KiyHqoKQJvNeKa/slGF+9HDHnKvROg6Oj9/cLhqPHayN5wPsBH004lA/Q=----ATTACHMENT:----NTUwODA2NTk1NzA4NDQ2OCA3MTk2NTM5NDA1MzI5ODUgMzc5NzYzMjI4MDE0NzIx