public function __construct($dispatcher, $options = array()) { Client::bootstrap(); $this->dispatcher = $dispatcher; $this->options = array_merge(Client::$DEFAULTS, $options); $this->attachments = new Resources\Attachments($this); $this->events = new Resources\Events($this); $this->projects = new Resources\Projects($this); $this->stories = new Resources\Stories($this); $this->tags = new Resources\Tags($this); $this->tasks = new Resources\Tasks($this); $this->teams = new Resources\Teams($this); $this->users = new Resources\Users($this); $this->workspaces = new Resources\Workspaces($this); }