/** * Gibt das Verzeichnis zurück in dem sich die psc-Projekte befinden * * insbesondere sollte dor psc-cms als Verzeichnis drin liegen mit dem Repository fürs CMS * @return Dir */ public function getProjectsRoot() { if (!isset($this->projectsRoot)) { $this->projectsRoot = new Dir($this->hostConfig->req('projects.root')); } return $this->projectsRoot; }
/** * @return Psc\URL\Request */ protected function getRequest() { if (!isset($this->request)) { $this->request = new \Psc\URL\Request($this->expandUrl($this->url)); $this->request->setAuthentication($this->hostConfig->req('cmf.user'), $this->hostConfig->req('cmf.password'), CURLAUTH_BASIC); $this->request->setHeaderField('X-Psc-Cms-Connection', 'tests'); $this->request->setHeaderField('X-Psc-Cms-Debug-Level', 15); if ($this->method == 'GET' || $this->method == 'POST') { $this->request->setType($this->method); } else { $this->request->setType('POST'); $this->request->setHeaderField('X-Psc-Cms-Request-Method', $this->method); } $this->setContentType('html'); // this is great for debugging, but it slows down 50% if ($this->sendDebugSessionCookie && $this->hostConfig->get('uagent-key') != NULL) { $this->request->setHeaderField('Cookie', 'XDEBUG_SESSION=' . $this->hostConfig->get('uagent-key')); } } return $this->request; }