Пример #1
0
<?php

$console = PhpBrew\Console::getInstance();
if (isset($argv)) {
    if (!$console->runWithTry($argv)) {
        exit(-1);
    }
}
Пример #2
0
<?php

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