예제 #1
0
 /**
  * @return Webforge\Common\System\Dir
  */
 public function getTarget()
 {
     if (!isset($this->target)) {
         $this->target = $this->deploymentsRoot->sub($this->project->getName() . ($this->variant ? '.' . $this->variant : NULL) . '/');
     }
     return $this->target;
 }
예제 #2
0
 protected function copyErrors()
 {
     // kopieren für (was auch immer) htdocs ist
     $target = $this->targetProject->getHtdocs()->sub('errors/');
     if (!$target->exists()) {
         $this->psc->getHtdocs()->sub('errors/')->copy($target->create(), NULL, array('404.wurf1.html'), TRUE);
     }
 }
예제 #3
0
 public function createHTMLPage()
 {
     $page = new \Psc\HTML\FrameworkPage();
     $page->addCMSDefaultCSS();
     $page->addCMSRequireJS($assetModus = $this->project->isBuilt() ? 'built' : 'development');
     $page->setTitleForProject($this->project);
     $page->setLanguage($this->getLanguage());
     return $page;
 }
예제 #4
0
 protected function expandUrl($url)
 {
     if ($this->publicRequest) {
         $baseUrl = $this->project->getHostUrl('base');
     } else {
         $baseUrl = $this->project->getHostUrl('cms');
     }
     return $baseUrl . ltrim($url, '/');
 }