Example #1
0
<?php

/**
 * ArborPHP: Freamwork PHP (http://arborphp.com)
 * Copyright (c) NewClass (http://newclass.pl)
 *
 * Licensed under The MIT License
 * For full copyright and license information, please see the file LICENSE
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright (c) NewClass (http://newclass.pl)
 * @link          http://arborphp.com ArborPHP Project
 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
 */
require_once __DIR__ . '/../arbor/Root.php';
array_shift($argv);
$env = 'prod';
$debug = false;
if (file_exists(__DIR__ . '/../dev')) {
    $env = 'dev';
    $debug = true;
}
$root = new Arbor\Root($debug, true, $env);
$root->executeCommand($argv);
Example #2
0
<?php

/**
 * ArborPHP: Freamwork PHP (http://arborphp.com)
 * Copyright (c) NewClass (http://newclass.pl)
 *
 * Licensed under The MIT License
 * For full copyright and license information, please see the file LICENSE
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright (c) NewClass (http://newclass.pl)
 * @link          http://arborphp.com ArborPHP Project
 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
 */
require_once __DIR__ . '/../arbor/Root.php';
$env = 'prod';
$debug = false;
if (file_exists(__DIR__ . '/../dev')) {
    $env = 'dev';
    $debug = true;
}
$root = new Arbor\Root($debug, false, $env);
$root->executeRequest();