public function __construct() { global $BOS_TEST_CONFIG; parent::__construct(); $this->client = new BosClient($BOS_TEST_CONFIG); $this->logger = LogFactory::getLogger(get_class($this)); }
public function __construct() { $this->guzzleClient = new Client(); $this->logger = LogFactory::getLogger(get_class($this)); if (!$this->logger instanceof NullLogger) { $logPlugin = new LogPlugin(new GuzzleLogAdapter(), MessageFormatter::DEFAULT_FORMAT); $this->guzzleClient->addSubscriber($logPlugin); } }
public function __construct(BosClient $client, $bucket) { $this->client = $client; $this->bucket = $bucket; $this->logger = LogFactory::getLogger('BaiduBos'); }
public function __construct() { $this->logger = LogFactory::getLogger('HTTP'); }