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

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

Deactivates a package if it is in the list of active packages
public deactivatePackage ( string $packageKey ) : void
$packageKey string The package to deactivate
Результат void
    public function deactivatePackage($packageKey);

Usage Example

 /**
  * @param string $packageKey
  * @return Error|Message
  */
 protected function deactivatePackage($packageKey)
 {
     try {
         $this->packageManager->deactivatePackage($packageKey);
         $message = new Message('%s was deactivated', 1343231678, array($packageKey));
     } catch (ProtectedPackageKeyException $exception) {
         $message = new Error('The package %s is protected and can not be deactivated', 1343231679, array($packageKey));
     }
     return $message;
 }
All Usage Examples Of Neos\Flow\Package\PackageManagerInterface::deactivatePackage