Ejemplo n.º 1
0
 /**
  * {@inheritDoc}
  */
 protected function updateCode(PackageInterface $initial, PackageInterface $target)
 {
     if ($this->getLocalPathForPackage($target) === null && !$this->isSymlink($this->getInstallPath($initial))) {
         return parent::updateCode($initial, $target);
     }
     $this->io->write("  - Replacing <info>" . $initial->getName() . "</info>");
     $this->removeCode($initial);
     return $this->installCode($target);
 }
Ejemplo n.º 2
0
 /**
  * {@inheritDoc}
  */
 protected function updateCode(PackageInterface $initial, PackageInterface $target)
 {
     parent::updateCode($initial, $target);
     $this->postInstallActions($target, $this->getInstallPath($initial));
 }
Ejemplo n.º 3
0
 /**
  * {@inheritDoc}
  */
 protected function updateCode(PackageInterface $initial, PackageInterface $target)
 {
     parent::updateCode($initial, $target);
     $this->deleteIgnoredFiles($target);
 }
Ejemplo n.º 4
0
 /**
  * {@inheritDoc}
  */
 protected function updateCode(PackageInterface $initial, PackageInterface $target)
 {
     if ($this->isLocalSymlink($initial)) {
         if ($this->getInstallPath($initial) !== $this->getInstallPath($target)) {
             $this->initializeVendorSubdir($target);
             $this->filesystem->rename($this->getInstallPath($initial), $this->getInstallPath($target));
         }
         return true;
     }
     return parent::updateCode($initial, $target);
 }
 public function updateCode(PackageInterface $initial, PackageInterface $target)
 {
     $map = $this->mapSources($initial);
     parent::updateCode($initial, $target);
     $this->updateSources($map, $target, $initial);
     $this->updateUserfiles($target);
     $this->updateRunonce($target);
 }
Ejemplo n.º 6
0
 /**
  * {@inheritdoc}
  */
 public function updateCode(PackageInterface $initial, PackageInterface $target)
 {
     $map = $this->mapSources($initial);
     parent::updateCode($initial, $target);
     $this->updateSources($map, $target);
     $this->updateUserfiles($target);
     $this->updateRootFiles($target);
     $root = $this->plugin->getContaoRoot($this->composer->getPackage()) . DIRECTORY_SEPARATOR;
     $installPath = self::unprefixPath($root, $this->getInstallPath($target));
     RunonceManager::addRunonces($target, $installPath);
 }
 /**
  * {@inheritdoc}
  */
 protected function updateCode(PackageInterface $initial, PackageInterface $target)
 {
     $target = AssetPlugin::addMainFiles($this->composer, $target);
     parent::updateCode($initial, $target);
     $this->deleteIgnoredFiles($target);
 }
Ejemplo n.º 8
0
 /**
  * {@inheritDoc}
  */
 protected function updateCode(PackageInterface $initial, PackageInterface $target)
 {
     $initialShared = $this->isSharedInstallEnabled($initial);
     $targetShared = $this->isSharedInstallEnabled($target);
     if (!$initialShared && !$targetShared) {
         parent::updateCode($initial, $target);
         return;
     }
     $initialDownloadPath = $this->getInstallPath($initial);
     $targetDownloadPath = $this->getInstallPath($target);
     if ($targetDownloadPath !== $initialDownloadPath) {
         if (!$initialShared) {
             $this->removeCode($target);
         }
         $this->installCode($target);
         return;
     }
     $this->downloadManager->update($initial, $target, $targetDownloadPath);
 }
 public function updateCode(PackageInterface $initial, PackageInterface $target)
 {
     list($config_file, $contents) = $this->preCodeUpdate($initial);
     parent::updateCode($initial, $target);
     $this->postCodeUpdate($config_file, $contents);
 }
 /**
  * {@inheritDoc}
  */
 protected function updateCode(PackageInterface $initial, PackageInterface $target)
 {
     $path = $this->getInstallPath($initial);
     if (!is_link($path)) {
         parent::updateCode($initial, $target);
     }
 }