public function install(RepositoryInterface $repo, InstallOperation $operation)
 {
     $package = $operation->getPackage();
     $installer = $this->getInstaller($package->getType());
     $installer->install($repo, $package);
     $this->markForNotification($package);
 }
 /**
  * Executes install operation.
  *
  * @param   InstallOperation    $operation  operation instance
  */
 public function install(InstallOperation $operation)
 {
     $package = $operation->getPackage();
     if ($package instanceof AliasPackage) {
         $package = $package->getAliasOf();
         $package->setInstalledAsAlias(true);
     }
     $installer = $this->getInstaller($package->getType());
     $installer->install($package);
 }
Example #3
0
 /**
  * Executes install operation.
  *
  * @param   RepositoryInterface $repo       repository in which to check
  * @param   InstallOperation    $operation  operation instance
  */
 public function install(RepositoryInterface $repo, InstallOperation $operation)
 {
     $package = $operation->getPackage();
     if ($package instanceof AliasPackage) {
         $package = $package->getAliasOf();
         $package->setInstalledAsAlias(true);
     }
     $installer = $this->getInstaller($package->getType());
     $installer->install($repo, $package);
     $this->notifyInstall($package);
 }
 public function install(RepositoryInterface $repo, InstallOperation $operation)
 {
     $this->installed[] = $operation->getPackage();
     $this->trace[] = (string) $operation;
     $repo->addPackage(clone $operation->getPackage());
 }
 public function onInstall(InstallOperation $operation, &$postinstall_queue)
 {
     $package = $operation->getPackage();
     $app_code = $this->getApplicationCode($package);
     $postinstall_queue[] = ['install', $app_code];
 }
Example #6
0
 /**
  * Executes install operation.
  *
  * @param   InstallOperation    $operation  operation instance
  */
 public function install(InstallOperation $operation)
 {
     $installer = $this->getInstaller($operation->getPackage()->getType());
     $installer->install($operation->getPackage());
 }
Example #7
0
 /**
  * {@inheritDoc}
  */
 public function install(RepositoryInterface $repo, InstallOperation $operation)
 {
     $this->packageInformation->set($this->packageInformation->escape($operation->getPackage()->getPrettyName()), ['type' => 'install', 'reason' => $this->getReason($operation), 'package' => $this->dumper->dump($operation->getPackage())]);
     parent::install($repo, $operation);
 }