3887f5746c
Changes made on external(symfony) classes! To change the help format as needed Fixed some typing mistakes
36 linhas
856 B
PHP
Arquivo Executável
36 linhas
856 B
PHP
Arquivo Executável
<?php
|
|
/**
|
|
* This file is part of TheWebMind 3rd generation.
|
|
*
|
|
* @author Felipe Nascimento de Moura <felipenmoura@gmail.com>
|
|
* @license licenses/mind3rd.license
|
|
*/
|
|
use Symfony\Component\Console\Input\InputArgument,
|
|
Symfony\Component\Console\Input\InputOption,
|
|
Symfony\Component\Console;
|
|
|
|
class Quit extends MindCommand implements program
|
|
{
|
|
public function __construct()
|
|
{
|
|
$this->setCommandName('exit')
|
|
->setDescription('Finishes the application')
|
|
->setAction('action')
|
|
->setRestrict(false)
|
|
->setFileName('Quit')
|
|
->setHelp(<<<EOT
|
|
Finishes the application, leaving mind3rd console;
|
|
EOT
|
|
);
|
|
$this->init();
|
|
}
|
|
|
|
public function action()
|
|
{
|
|
@session_destroy();
|
|
//\API\Program::execute('clear');
|
|
Mind::write('bye');
|
|
exit;
|
|
}
|
|
}
|