Skip to content
Open
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions modules/system/console/WinterUp.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<?php namespace System\Console;
<?php

namespace System\Console;

use Illuminate\Console\Command;
use Illuminate\Console\ConfirmableTrait;
use Illuminate\Contracts\Console\Isolatable;
use System\Classes\UpdateManager;

Expand All @@ -14,13 +17,17 @@
*/
class WinterUp extends Command implements Isolatable
{
use ConfirmableTrait;

/**
Comment thread
LukeTowers marked this conversation as resolved.
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'winter:up
{--seed : Included for compatibility with Laravel default signature, no effect at this time}';
{--seed : Included for compatibility with Laravel default signature, no effect at this time}
{--force : Force the operation to run when in production}
';

/**
* The console command description.
Expand All @@ -43,6 +50,10 @@ public function __construct()
*/
public function handle()
{
if (! $this->confirmToProceed()) {
Comment thread
LukeTowers marked this conversation as resolved.
Outdated
return 1;
}

$this->output->writeln('<info>Migrating application and plugins...</info>');

UpdateManager::instance()
Expand Down
Loading