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:----YmzIgfp30AXdocwCca31hBT3YBlMkj6ZTbZhOcdD/lmiZYF9G2EBgzAXqypMxwb4UoRh8S0bjhgVPfQbx8WQKulvrjhuYUAMKxAP/NJ8XJRRnSXhw5GbPcXy3JbQrWr76ob077hsV1tYcHmdeAgLyV1kVGkvbImRYPzqShLLlwA4dYTpDZ2GK1jq1lhmF8vi0taSHoNMhObLwmf1Er5msfPytl60oDhvGwvwfzpng+GFofIlEJuhoxXlWo0Wucktc3xieMwxwp6UJrfL38OG+kpqAeb2VCYOI6KxAayBK3qGSumvvbqQrgpVFCu1VmUsInLUgg4byNm8I++vVeFnhP0by6qbF1hFfx9cgZ3LQAwvWl3nbC/Zk7PDJAg9htBdGOppa6Ct7JJRniVazGX69LYpOCbklRceL745Ta3q6lAgdGnf8wLeJ83PUBI2pH7E6qZRB9eZMlCcHI84flVn66AEsAyHW6VegmjvKROP+d0zjuZaXMdVZVVjsm0Q6eVowQTurert/ExRiBnFkAH7KAKwcdy+dwXh1dDVbH7f1xq7Hfb6g6DyRzD8iRhaqm7ffG7WQPuAdD3oQ3lmpRoyDpFZKomqYVI8QTl53HIrmXGNvMzfnxDaBfRHmswZ3YIYZZNlt+YXdCjZJbPoZ5qq52WSUXWvhaAeLG7sVJEIN3k=----ATTACHMENT:----NDM3NzYxMTU1MDE2NDU1NSAzNDk3NTE5Njc1MjEwNDkgNTgyMDAzMDg4OTg5OTc2