winter/modules/system/console/OctoberUp.php

59 lines
1.2 KiB
PHP
Raw Normal View History

2014-05-14 23:24:20 +10:00
<?php namespace System\Console;
use Illuminate\Console\Command;
use System\Classes\UpdateManager;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
class OctoberUp extends Command
{
/**
* The console command name.
*/
protected $name = 'october:up';
/**
* The console command description.
*/
protected $description = 'Builds database tables for October and all plugins.';
/**
* Create a new command instance.
*/
public function __construct()
{
parent::__construct();
}
/**
* Execute the console command.
*/
public function fire()
{
$manager = UpdateManager::instance()->resetNotes()->update();
$this->output->writeln('<info>Migrating application and plugins...</info>');
2014-10-18 11:58:50 +02:00
foreach ($manager->getNotes() as $note) {
2014-05-14 23:24:20 +10:00
$this->output->writeln($note);
2014-10-18 11:58:50 +02:00
}
2014-05-14 23:24:20 +10:00
}
/**
* Get the console command arguments.
*/
protected function getArguments()
{
return [];
}
/**
* Get the console command options.
*/
protected function getOptions()
{
return [];
}
2014-10-18 11:58:50 +02:00
}