Пример #1
0
 /**
  * {@inheritDoc}
  */
 protected function removeCode(PackageInterface $package)
 {
     $path = $this->getInstallPath($package);
     if ($this->isSymlink($path)) {
         $this->debug("Unlinking <comment>{$path}</comment>...");
         $this->filesystem->unlink($path);
         return true;
     }
     return parent::removeCode($package);
 }
 /**
  * {@inheritDoc}
  */
 protected function removeCode(PackageInterface $package)
 {
     $publicPath = $this->getPublicPath();
     $installPath = $this->getInstallPath($package);
     if (is_link($installPath)) {
         unlink($installPath);
     } else {
         parent::removeCode($package);
     }
     // remove symlink package public folder to keeko's public folder
     $type = $package->getType();
     if ($type !== 'keeko-core') {
         $target = $this->filesystem->normalizePath($publicPath . '/' . $this->getPackageDir($type) . '/' . $package->getName());
         if (is_link($target)) {
             unlink($target);
         }
         // remove parent if empty
         $parent = dirname($target);
         if (file_exists($parent) && count(scandir($parent)) == 2) {
             $this->filesystem->removeDirectoryPhp($parent);
         }
     }
 }
 /**
  * {@inheritDoc}
  */
 protected function removeCode(PackageInterface $package)
 {
     parent::removeCode($package);
     $this->removeLoader($package);
 }
Пример #4
0
 /**
  * {@inheritDoc}
  */
 protected function removeCode(PackageInterface $package)
 {
     if ($this->isLocalSymlink($package)) {
         $this->filesystem->unlink($this->getInstallPath($package));
         return true;
     }
     return parent::removeCode($package);
 }
Пример #5
0
 /**
  * Remove both the installed code and files from the Component directory.
  *
  * @param PackageInterface $package
  */
 public function removeCode(PackageInterface $package)
 {
     $this->removeComponent($package);
     parent::removeCode($package);
 }
 /**
  * {@inheritDoc}
  */
 protected function removeCode(PackageInterface $package)
 {
     if (!$this->isSharedInstallEnabled($package)) {
         parent::removeCode($package);
         return;
     }
 }
 /**
  * Remove the code
  *
  * @param PackageInterface $package            
  * @return void
  */
 public function removeCode(PackageInterface $package)
 {
     $this->initializeVendorDir();
     $this->supportedByName($package->getPrettyName());
     $this->setComponentPath();
     if (is_dir($this->getComponentPath()) && basename($this->getComponentPath()) !== 'component') {
         $this->filesystem->removeDirectory($this->getComponentPath());
     } else {
         $this->io->error($this->getComponentPath());
     }
     parent::removeCode($package);
 }