winter/modules/system/console/OctoberUp.php
2014-10-18 11:58:50 +02:00

59 lines
1.2 KiB
PHP

<?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>');
foreach ($manager->getNotes() as $note) {
$this->output->writeln($note);
}
}
/**
* Get the console command arguments.
*/
protected function getArguments()
{
return [];
}
/**
* Get the console command options.
*/
protected function getOptions()
{
return [];
}
}