示例#1
0
 public function __construct()
 {
     global $BOS_TEST_CONFIG;
     parent::__construct();
     $this->client = new BosClient($BOS_TEST_CONFIG);
     $this->logger = LogFactory::getLogger(get_class($this));
 }
示例#2
0
 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');
 }
示例#4
0
 public function __construct()
 {
     $this->logger = LogFactory::getLogger('HTTP');
 }