Ejemplo n.º 1
0
<?php

$console = PhpBrew\Console::getInstance();
if (isset($argv)) {
    if (!$console->runWithTry($argv)) {
        exit(-1);
    }
}
Ejemplo n.º 2
0
<?php

$console = new PhpBrew\Console();
try {
    if (isset($argv)) {
        $console->run($argv);
    }
} catch (Exception $e) {
    echo $e->getMessage(), "\n";
    exit(-1);
}