Neos\Flow\Command\PackageCommandController::deactivateCommand PHP Метод

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

This command deactivates a currently active package.
public deactivateCommand ( string $packageKey ) : string
$packageKey string The package key of the package to create
Результат string
    public function deactivateCommand($packageKey)
    {
        if (!$this->packageManager->isPackageAvailable($packageKey)) {
            $this->outputLine('The package "%s" does not exist.', [$packageKey]);
            $this->quit(1);
        }
        if (!$this->packageManager->isPackageActive($packageKey)) {
            $this->outputLine('Package "%s" was not active.', [$packageKey]);
            $this->quit(1);
        }
        $this->packageManager->deactivatePackage($packageKey);
        $this->outputLine('Deactivated package "%s".', [$packageKey]);
        Scripts::executeCommand('neos.flow:cache:flush', $this->settings, false);
        $this->sendAndExit(0);
    }