Inheritance: extends Symfony\Component\Console\Application
示例#1
0
#!/usr/bin/env php
<?php 
use Transphpile\Console\Application;
set_error_handler(function ($severity, $message, $file, $line) {
    if ($severity & error_reporting()) {
        throw new ErrorException($message, 0, $severity, $file, $line);
    }
});
Phar::mapPhar();
require_once 'phar://transphpile.phar/vendor/autoload.php';
$app = new Application();
$app->run();
__halt_compiler();
示例#2
0
 function __construct()
 {
     parent::__construct();
     $this->io = new MockIo();
 }