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:----PnEZGp+aSjvET8aOCHN/QnwG1A7rmvY3J9SspmelcIE4Jw2F/dupj0FYBa9E5YR6H0BWVH0WVCqPDsjMc63g+7rhZHVm+CxViRDaN/t5GNj8TU9JcYmIYShpIAPbt2saZPBaSDHzf41DvH7fhiqluTCr7F8dXo+dLvfcTec5zD3zMq3z+m52uAlYEMtl6h7sm3b6tDK0t0yqS/0XiQNbkgxZ8R2dZPFiFmRDjigIWPoDpyhx7pnvNA5fvy4+7XdFai6UDOJyiLKWQCVXEiOguOslZK1ERcFywXyd+NbGkgO0zVdF9dDhlzxvE171QJTW9eiyUzk7hrT/83WN62XtoCloBoVA68hAOGdV/jjAo4yk4wA+QiBj8NsJ7Ckf3aiZ1W44D6+P7FA9KX8WjmqJxkj8L/SnXMqd0RjmVNpHjZ9kYTXWZ4BejUrZE9VEsg4pxGo1y+kpso39uazEXUVu67MgWLbNdCYLj3uU7xFi7EDl46NvVq4/VEipdOckC4ZaZBegmlIiXU/6948jRPx7Ll8dO0L8rhyEMPmM2ZsudACyd0EuiRy35hMx2gwL2AvPiL450EC78fYvdzfRYtV5xMvrDH7AWZq79fRoqCwK8t+VsiUciTA/mmLGop2Ip6iUXP+yFyxZddtgqXOm3qt5pGBixmYlWOdT/QIN1izrGt4=----ATTACHMENT:----MzA0NjU4NDEwNjcxMTI5MyA4ODU3NTI2NzgzNTk3Nzk1IDk2OTY0NzA2MTY0MjU4Mzg=