Neos\Flow\Package\PackageManagerInterface::deletePackage PHP Метод

deletePackage() публичный Метод

Removes a package from registry and deletes it from filesystem
public deletePackage ( string $packageKey ) : void
$packageKey string package to delete
Результат void
    public function deletePackage($packageKey);

Usage Example

 /**
  * Delete an existing package
  *
  * This command deletes an existing package identified by the package key.
  *
  * @Flow\FlushesCaches
  * @param string $packageKey The package key of the package to create
  * @return string
  */
 public function deleteCommand($packageKey)
 {
     if (!$this->packageManager->isPackageAvailable($packageKey)) {
         $this->outputLine('The package "%s" does not exist.', [$packageKey]);
         $this->quit(1);
     }
     $this->packageManager->deletePackage($packageKey);
     $this->outputLine('Deleted package "%s".', [$packageKey]);
     Scripts::executeCommand('neos.flow:cache:flush', $this->settings, false);
     $this->sendAndExit(0);
 }
All Usage Examples Of Neos\Flow\Package\PackageManagerInterface::deletePackage