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;