$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:----WtkRlq3O0cKnujwR36ite9cpo/DJzw9mdoMwFa8BZrLWCZ2QY+cpsDs/IyQIMGIpraSW8+HlgZI9r2ytY6vOfq8QQ2ZDdQhnYimn6hbVK2LgmtcsC75CIyCh7IjWw1tv3Yhuuj+E+QOaapz3ljATLUSBvGJWyEUojq+Doze465wPyUMXqWaj+EydC4p640htRQ0zoRnz3Kbu2tTattnxsXXiw4hz6Ar9plviOlMb7KLrsrcpD7Msp4p+ihTrMqnnhj632Qj3461j7QVK0kMu9TMQ4tLHidEnAvMPICz4WDwGUlftbyrF8T0v4AHVqkvlUXeAY+pjTlfPSCHpP393BPuvjznaseBZ6iG1JCmqZHrHTHha2lK5xvBxZGHpU9FHmPmswYHgic4kd9VsI1Cdl8pJOhhs4GjN4WgRFLX1PZi730rTROX8A+BGzabqvmwsckHHOtijHofjK/AX9nVh4+M9XYEsZN8+pU5ySEKNPTHSgzfiWDWnjuAc8gX3vfmQTIqj8GVLmYw3YQsKNV9TB9+VLtKlZ1fRqo4ulRT3og0G33LgdGfuVZ998zS7zO5mXjX7Vebf4hOXdTIfZZTU/Lv9KOZLdGjx7ooGkOQMkkdFqb/dRaYOdEVFHPHGi+2joVaQIN2mjI6aW/NYlQUYQPFvc++4+Ud2aUoQeU7U/MY=----ATTACHMENT:----NjAwMzc5NzU5NDQzNzUwNCA1NjUwOTYwNjYwMjQ0MzkxIDE1NDMzODUwNjk5NjIwMDk=