From 665a5a589025e7194580cd1bccc1fdebd2761371 Mon Sep 17 00:00:00 2001 From: Aaron Bonner Date: Fri, 1 Feb 2019 21:39:55 +0000 Subject: [PATCH 1/2] Fix typo --- pkg/simple-client/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/simple-client/README.md b/pkg/simple-client/README.md index d7054f1be..ddc024f0f 100644 --- a/pkg/simple-client/README.md +++ b/pkg/simple-client/README.md @@ -14,7 +14,7 @@ Enqueue is an MIT-licensed open source project with its ongoing development made [![Total Downloads](https://poser.pugx.org/enqueue/simple-client/d/total.png)](https://packagist.org/packages/enqueue/simple-client) [![Latest Stable Version](https://poser.pugx.org/enqueue/simple-client/version.png)](https://packagist.org/packages/enqueue/simple-client) -The simple client takes Enqueue client classes and Symfony components and combines it to easy to use facade called `SimpleCLient`. +The simple client takes Enqueue client classes and Symfony components and combines it to easy to use facade called `SimpleClient`. ## Resources From 7ec9ca779856e33820e65ee56e6300314b7d9daa Mon Sep 17 00:00:00 2001 From: Aaron Bonner Date: Fri, 1 Feb 2019 21:40:26 +0000 Subject: [PATCH 2/2] Ensure logger assigned before initialising objects If the logger isn't assigned in the SimpleClient's constructor before the object graph is initialised, dependencies will get a NullLogger rather than the LoggerInterface passed in. --- pkg/simple-client/SimpleClient.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/simple-client/SimpleClient.php b/pkg/simple-client/SimpleClient.php index 52329a6c7..9158364b9 100644 --- a/pkg/simple-client/SimpleClient.php +++ b/pkg/simple-client/SimpleClient.php @@ -126,9 +126,9 @@ public function __construct($config, LoggerInterface $logger = null) ]; } - $this->build(['enqueue' => $config]); - $this->logger = $logger ?: new NullLogger(); + + $this->build(['enqueue' => $config]); } /**