Exemple #1
0
 /**
  * connection create
  */
 public function connect($uri, $options = array())
 {
     parent::connect($uri, $options);
     $this->queue = substr($uri, strpos($uri, '/') + 1);
     $result = $this->client->createQueue(array('QueueName' => (string) $this->queue));
     $this->url = $result->get('QueueUrl');
 }
 /**
  * connection create
  */
 public function connect($uri, $options = array())
 {
     parent::connect($uri, $options);
 }
Exemple #3
0
 /**
  * prepare connect an AmazonS3 bucket.
  * @param string $uri '[region name]/[bucket_name]/'
  * @param array $options map. see the AmazonS3 options.
  * @see Provider::connect()
  */
 public function connect($uri, $options = array())
 {
     parent::connect($uri, $options);
     if (strpos($uri, '/') === false) {
         throw new \mychaelstyle\Exception('Fail to connect amazon s3! bucket_name is required!', \mychaelstyle\Exception::ERROR_PROVIDER_CONNECTION);
     }
     $this->bucket_name = substr($uri, strpos($uri, '/') + 1);
 }