From 952cbe841efa086d6f69d392a5fd7acb29bb77b0 Mon Sep 17 00:00:00 2001 From: Te7a-Houdini Date: Thu, 10 May 2018 11:00:42 +0200 Subject: [PATCH] Allow client object to be passed for manager method --- src/Wrapper.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Wrapper.php b/src/Wrapper.php index 1533d0a..bb8756f 100644 --- a/src/Wrapper.php +++ b/src/Wrapper.php @@ -54,12 +54,13 @@ public function __construct(Repository $config) /** * Returns trello manager instance * + * @param null $client * @return \Trello\Manager */ - public function manager() + public function manager($client = null) { if (!isset($this->manager)) { - $this->manager = new Manager($this->client); + $this->manager = new Manager($client ? $client : $this->client); } return $this->manager;