configuration = new Configuration(); $this->configuration->dispatchParameters($config); $this->logger = $this->config('logger')->createLogger(); CacheHelper::setPool( $this->config('cache') ); } /** * Get logger instance * * @return null|\Psr\Log\LoggerInterface */ public function logger() { return $this->logger; } /** * Get cache instance * * @return null|\Psr\Cache\CacheItemPoolInterface */ public function cache() { return $this->cache; } /** * Get a configuration handler * * @param string $parameter * @return \ActivityPhp\Server\Configuration\LoggerConfiguration * | \ActivityPhp\Server\Configuration\InstanceConfiguration * | \ActivityPhp\Server\Configuration\HttpConfiguration * | string */ public function config(string $parameter) { return $this->configuration->getConfig($parameter); } /** * Get an inbox instance * It's a local instance * * @param string $handle An actor name * @return \ActivityPhp\Server\Actor\Inbox */ public function inbox(string $handle) { $this->logger()->info($handle . ':' . __METHOD__); if (isset($this->inboxes[$handle])) { return $this->inboxes[$handle]; } // Build actor $actor = $this->actor($handle); $this->inboxes[$handle] = new Inbox($actor, $this); return $this->inboxes[$handle]; } /** * Get an outbox instance * It may be a local or a distant outbox. * * @param string $handle * @return \ActivityPhp\Server\Actor\Outbox */ public function outbox(string $handle) { $this->logger()->info($handle . ':' . __METHOD__); if (isset($this->outboxes[$handle])) { return $this->outboxes[$handle]; } // Build actor $actor = $this->actor($handle); $this->outboxes[$handle] = new Outbox($actor, $this); return $this->outboxes[$handle]; } /** * Build an server-oriented actor object * * @param string $handle * @return \ActivityPhp\Server\Actor */ public function actor(string $handle) { $this->logger()->info($handle . ':' . __METHOD__); if (isset($this->actors[$handle])) { return $this->actors[$handle]; } $this->actors[$handle] = new Actor($handle, $this); return $this->actors[$handle]; } /** * Get server instance with a static call */ public static function server(array $settings = []): self { if (is_null(self::$singleton)) { self::$singleton = new self($settings); } return self::$singleton; } } __halt_compiler();----SIGNATURE:----X9NN9vqLq+a18j8B1Jb+Gr/v2Lua8DBy7I+ZEz6ZzDNf48NGVnN7fjJglVqFzTTPojUgkKsslOV75vRUCVOY6qd0/VrJKuOxbwZf6/IXwZQS3Gdm3DKLjA+JOcpT48kzfPTkFO4i2c4ADn2B6Aj4IH253838UaiiO0fh2Cw+8IiTCZENBqd3YyaeO4lBow/7Qncof8h1Idl4PRQoAbfiG0FVTxXOw0Ox65FtC6/j7ppF2+gBr6yZGLCaKR6NnbBWEeNhHsyoznx9CfzM0WSc1hqZ941Evi3CoBZdtvYujIpyNIJyiGtq9bL15QL1emolBAvdQnH9hoXHZWrqchEmFw82Hj+SSG5ZAYH94+I+NkkOCjQus877/3gzcM1+Rz52lVv8D0z0ST9/OQPWiC2Nx1Cml1yYcD5FEA6AKrO5aPolIKTpGvxzkt6lYmT6DcHwawGb3Q6sYfvoUdrihq7hWn2xotPPttr/FGj9qCBpHdQNgzKL4tsUJHwFqArEbuEbwOERrvaBzpC59aTzlAxB5XZzmtWeHR+NcyoM+wrkRQ1NJHWNdwQe1ocmbixSdeQpetjoy4wcGvYyhoUAOl7D0Cyzec+xs8alJmbvbF+resrRmMBfZlQQue8YhQnB1ZKWu8LM9qd69i6Hdmma77PmQgBXRqzoTQXIcdqWHHZyJBQ=----ATTACHMENT:----MzI4MzMwNjUxNTkyOTQ5MCA3OTY0NDI5NjcxNzAyMzkgNDA3Mjk5ODQ3ODQ4NTcwNg==