Exemplo n.º 1
0
 /**
  * {@inheritDoc}
  */
 public function initialize()
 {
     $this->depot = $this->repoConfig['depot'];
     $this->branch = '';
     if (!empty($this->repoConfig['branch'])) {
         $this->branch = $this->repoConfig['branch'];
     }
     $this->initAssetPerforce($this->repoConfig);
     $this->perforce->p4Login();
     $this->perforce->checkStream();
     $this->perforce->writeP4ClientSpec();
     $this->perforce->connectClient();
     $this->cache = new Cache($this->io, $this->config->get('cache-repo-dir') . '/' . $this->originUrl . '/' . $this->depot);
     return true;
 }