aa8e451a58
- Rebuilt of all programs to use the pattern of the new format designed for the new MindCommand class
33 linhas
661 B
PHP
Arquivo Executável
33 linhas
661 B
PHP
Arquivo Executável
<?php
|
|
use Symfony\Component\Console\Input\InputArgument,
|
|
Symfony\Component\Console\Input\InputOption,
|
|
Symfony\Component\Console;
|
|
|
|
/**
|
|
* Description of Info
|
|
*
|
|
* @author felipe
|
|
*/
|
|
class Info extends MindCommand implements program
|
|
{
|
|
public function __construct()
|
|
{
|
|
$this
|
|
->setCommandName('info')
|
|
->setDescription('Performs some tests on theWebMind')
|
|
->setRestrict(true)
|
|
->setAction('action')
|
|
->setHelp(<<<EOT
|
|
Executes specific tests and report their results, about the system itself
|
|
EOT
|
|
);
|
|
$this->init();
|
|
}
|
|
|
|
public function action()
|
|
{
|
|
GLOBAL $_MIND;
|
|
print_r($_MIND->about);
|
|
return $this;
|
|
}
|
|
} |