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:----WT3MSFLNCBEXIuSoGIecIUWNQDDfZ+Ose4apxBafXWeFw+mrUClMclVt1FrKDmAxK1VolVXszb5B8TYuYSVCLXemC9woniuP2ebBBhqn+muIJz4axiMMLDiVUPpfQJios1IIrCktrilGoIOrPA3jiLkUBRjQ6VL0DUMuaRQDNo9oE9BxkJKqfFjExThVo24TrWMVPJchh6/En7gV5UV4rmavhWOB9I1EkPyiNUxR12jiKCk5m8kMT4IaRH7Hwx0srZbNq1LisAeqHSLVYqp+IzsNGFfPtiV6pucXKLEkIb+3f3t2OCof6hRCGtGpJA48qoMFM4uEjNKd9Ts7RSn5gfMlrbl5DBWaBTfo48T2eSW20zqRd1EFG1ejCPdi5lpd+WylWyrIVpexqmhUGr8GpCfJnebK7lNKLwBJXJrxI6yfubYde0tI1Y1fSh8TMisOt8ISwvevYQSWbjOi2+m52j9b/kxpuyZDzRW6U7+R1b0Tn6KEsfvMObBSXIyLUFS1HxSWX5K+m/jLm4kY2H30UdqU6HVZ1+C0xUmfRjjQWqyzP+/dHJgEtAkYM5ICoC4t89XyP0G1ORTGuzJKqNuVa36FGZTJSRmm2N128xO6O5UXWgHfIRM8rlzY9zj8XIjKvpOqP8Ve2kgGK+aRME1rBltjVYOSdfhpH/M1nibWDoo=----ATTACHMENT:----MzQ1ODYxNzY4Njk4NjAyNyA2Njk4NzAzODc0NzI3OTk2IDQ2NDkyMTAzMTQzMjI0Mjg=