/** * 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); }
<?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); }