Skip to content
This repository has been archived by the owner on Apr 6, 2022. It is now read-only.

acquia-search-governor-php cannot read stored auth data #79

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/Acquia/Rest/ServiceManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,11 @@ public function setClient($group, $name, Client $client)
* @return \Guzzle\Service\Client
*/
public function getClient($group, $name)
{
{
// when used with https://github.com/acquia/acquia-search-governor-php
// this isset fails, unless the private storage property of the
// ArrayObject $this has previously been accessed. I don't know why this works but it does.
$foo = $this[$group];
return isset($this[$group][$name]) ? $this[$group][$name] : null;
}

Expand Down