当前位置: 首页>>代码示例>>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;未经允许,请勿转载。