Files
vivespos-landing/modules/system/console/PluginDisable.php
avives 1f72193a64
Some checks are pending
Module sub-split / Sub-split (push) Waiting to run
feat: VivesPOS landing on Winter CMS 1.2 — theme + plugin + Dockerfile
- Base: wintercms/winter branch 1.2 (full framework)
- Theme vivespos: Canvas 7 + Bootstrap 5 CDN, custom CSS
- Layout: deferred GTM/GA4 tracking, JSON-LD SoftwareApplication
- Partials: hero (offline-first), features, modes (offline/nube toggle),
  screenshots, pricing (3 planes), comparison, FAQ, CTA
- Plugin VivesPOS.Site with ContactForm
- Dockerfile: PHP 8.2 Apache, port 80, healthcheck
- Added winter/wn-pages, blog, sitemap, seo plugins
- Active theme set to vivespos
2026-08-21 19:29:00 -06:00

48 lines
1.1 KiB
PHP

<?php namespace System\Console;
use Winter\Storm\Console\Command;
use System\Classes\PluginManager;
use System\Models\PluginVersion;
/**
* Console command to disable a plugin.
*
* @package winter\wn-system-module
* @author Lucas Zamora
*/
class PluginDisable extends Command
{
use Traits\HasPluginArgument;
/**
* @var string|null The default command name for lazy loading.
*/
protected static $defaultName = 'plugin:disable';
/**
* @var string The name and signature of this command.
*/
protected $signature = 'plugin:disable
{plugin : The plugin to disable. <info>(eg: Winter.Blog)</info>}';
/**
* @var string The console command description.
*/
protected $description = 'Disable an existing plugin.';
/**
* Execute the console command.
* @return void
*/
public function handle()
{
$pluginName = $this->getPluginIdentifier();
$pluginManager = PluginManager::instance();
// Disable this plugin
$pluginManager->disablePlugin($pluginName);
$this->output->writeln(sprintf('<info>%s:</info> disabled.', $pluginName));
}
}