Kraken\Console\Server\Command\Project\ProjectDestroyCommand::command PHP Method

command() protected method

protected command ( $params = [] )
    protected function command($params = [])
    {
        if (!isset($params['flags'])) {
            throw new RejectionException('Invalid params.');
        }
        return $this->manager->destroyProject($params['flags'])->then(function () {
            return 'Project has been destroyed.';
        });
    }
ProjectDestroyCommand