當前位置: 首頁>>代碼示例>>PHP>>正文


PHP LibraryInstaller::updateCode方法代碼示例

本文整理匯總了PHP中Composer\Installer\LibraryInstaller::updateCode方法的典型用法代碼示例。如果您正苦於以下問題:PHP LibraryInstaller::updateCode方法的具體用法?PHP LibraryInstaller::updateCode怎麽用?PHP LibraryInstaller::updateCode使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Composer\Installer\LibraryInstaller的用法示例。


在下文中一共展示了LibraryInstaller::updateCode方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: updateCode

 /**
  * {@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);
 }
開發者ID:far-blue,項目名稱:dev-linker,代碼行數:12,代碼來源:DevLinker.php

示例2: updateCode

 /**
  * {@inheritDoc}
  */
 protected function updateCode(PackageInterface $initial, PackageInterface $target)
 {
     parent::updateCode($initial, $target);
     $this->postInstallActions($target, $this->getInstallPath($initial));
 }
開發者ID:projek-xyz,項目名稱:ci-installer,代碼行數:8,代碼來源:ComposerInstaller.php

示例3: updateCode

 /**
  * {@inheritDoc}
  */
 protected function updateCode(PackageInterface $initial, PackageInterface $target)
 {
     parent::updateCode($initial, $target);
     $this->deleteIgnoredFiles($target);
 }
開發者ID:cychenyin,項目名稱:postmill,代碼行數:8,代碼來源:AssetInstaller.php

示例4: updateCode

 /**
  * {@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);
 }
開發者ID:piwi,項目名稱:composer-symlinker,代碼行數:14,代碼來源:LocalInstaller.php

示例5: updateCode

 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);
 }
開發者ID:contao-community-alliance,項目名稱:composer-installer,代碼行數:8,代碼來源:ModuleInstaller.php

示例6: updateCode

 /**
  * {@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);
 }
開發者ID:Jobu,項目名稱:core,代碼行數:14,代碼來源:AbstractInstaller.php

示例7: updateCode

 /**
  * {@inheritdoc}
  */
 protected function updateCode(PackageInterface $initial, PackageInterface $target)
 {
     $target = AssetPlugin::addMainFiles($this->composer, $target);
     parent::updateCode($initial, $target);
     $this->deleteIgnoredFiles($target);
 }
開發者ID:DYFeng,項目名稱:composer-asset-plugin,代碼行數:9,代碼來源:AssetInstaller.php

示例8: updateCode

 /**
  * {@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);
 }
開發者ID:ngyuki,項目名稱:composer-shared-installer,代碼行數:22,代碼來源:Installer.php

示例9: updateCode

 public function updateCode(PackageInterface $initial, PackageInterface $target)
 {
     list($config_file, $contents) = $this->preCodeUpdate($initial);
     parent::updateCode($initial, $target);
     $this->postCodeUpdate($config_file, $contents);
 }
開發者ID:passbolt,項目名稱:passbolt_selenium,代碼行數:6,代碼來源:SausageInstaller.php

示例10: updateCode

 /**
  * {@inheritDoc}
  */
 protected function updateCode(PackageInterface $initial, PackageInterface $target)
 {
     $path = $this->getInstallPath($initial);
     if (!is_link($path)) {
         parent::updateCode($initial, $target);
     }
 }
開發者ID:JasLin,項目名稱:composer-installer,代碼行數:10,代碼來源:KeekoComposerInstaller.php


注:本文中的Composer\Installer\LibraryInstaller::updateCode方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。