示例#1
0
文件: Control.php 项目: eden-php/core
 /**
  * The starting point of every framework call.
  *
  * @author Christian Blanquera cblanquera@openovate.com
  */
 function eden()
 {
     $class = Eden\Core\Control::i();
     if (func_num_args() == 0) {
         return $class;
     }
     $args = func_get_args();
     return $class->__invoke($args);
 }
示例#2
0
<?php

//-->
/**
 * This file is part of the Eden PHP Library.
 * (c) 2014-2016 Openovate Labs
 *
 * Copyright and license information can be found at LICENSE.txt
 * distributed with this package.
 */
ob_start();
if (file_exists(__DIR__ . '/../../../autoload.php')) {
    require_once __DIR__ . '/../../../autoload.php';
} else {
    require_once __DIR__ . '/../vendor/autoload.php';
}
Eden\Core\Control::i();
function eve()
{
    $args = func_get_args();
    return call_user_func_array('eden', $args);
}