예제 #1
0
 public function __construct($username, $password)
 {
     if (!$this->auth) {
         $this->auth = new Auth($username, $password);
         $this->dispatcher = new Dispatcher($this->auth);
         ObjectBroker::register("openshift", $this);
         ObjectBroker::register("auth", $this->auth);
         ObjectBroker::register("dispatcher", $this->dispatcher);
         return $this;
         //for method chaining
     }
 }