From d320db41a5f56d5e23ca038fe895f496b02daa47 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Fri, 1 Feb 2019 10:23:25 -0500 Subject: [PATCH] Add a TODO --- src/Config/ActivityPubModule.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Config/ActivityPubModule.php b/src/Config/ActivityPubModule.php index d2d709d..93db217 100644 --- a/src/Config/ActivityPubModule.php +++ b/src/Config/ActivityPubModule.php @@ -54,6 +54,9 @@ class ActivityPubModule ->setArguments( array( $dbParams, $dbConfig ) ) ->setFactory( array( EntityManager::class, 'create' ) ); + // TODO set a global timeout on the client, and add a middleware + // that ensures that the client will return null rather than throwing + // when it gets a timeout $this->injector->register( Client::class, Client::class ) ->addArgument( array( 'http_errors' => false ) );