Beispiel #1
0
<?php

/**
 * 入口文件
 */
use Symfony\Component\Yaml\Yaml;
use Zero\Component\Kernel\AppKernel;
require '../config/config.http.php';
define('CACHE_ROOT', APP_ROOT . '/cache');
// 配置文件地址
$kernel = new AppKernel(Yaml::parse(file_get_contents(APP_ROOT . '/app/config/config.' . ENTRY . '_' . ENV . '.yml')));
$configuration = $kernel->getConfiguration();
// yml格式的配置文件解析器
$yml_configuration_parser = function ($path) {
    if ($path) {
        return Yaml::parse(file_get_contents($path));
    }
    return array();
};
$modules = array(new \Zero\Module\Zero\Twig\ZeroTwigModule($yml_configuration_parser), new \TknyMed\DatabaseModule\TknyMedDatabaseModule($yml_configuration_parser), new \TknyMed\ForumModule\TknyMedForumMobile($yml_configuration_parser));
foreach ($modules as $module) {
    $configuration->merge($module());
    $kernel->registerModule($module);
}
$kernel->initAppServiceContainer('TknyMedBBSServiceContainer');
$app_container = $kernel->getAppServiceContainer();
$app_container->tag('debugger');
// 这个地方开始自行调用接收请求的逻辑
\Zero\Component\Kernel\HttpProcessor::process($kernel, $app_container);
Beispiel #2
0
/**
 * Created by PhpStorm.
 * User: tachigo
 * Date: 16-8-23
 * Time: 下午3:12
 */
use Symfony\Component\Yaml\Yaml;
use Zero\Component\Kernel\AppKernel;
require '../../config/config.http.php';
define('CACHE_ROOT', APP_ROOT . '/cache');
// 配置文件地址
$kernel = new AppKernel(Yaml::parse(file_get_contents(APP_ROOT . '/config/config.' . ENTRY . '.yml')));
$configuration = $kernel->getConfiguration();
// yml格式的配置文件解析器
$yml_configuration_parser = function ($path) {
    if ($path) {
        return Yaml::parse(file_get_contents($path));
    }
    return array();
};
$modules = array(new \Zero\Module\Zero\Http\ZeroHttpModule($yml_configuration_parser), new \Zero\Module\Zero\Twig\ZeroTwigModule($yml_configuration_parser), new \Zero\Module\Metronic\AssetsModule\MetronicAssetsModule($yml_configuration_parser), new \Zero\Module\Metronic\AdminModule\MetronicAdminModule($yml_configuration_parser), new \Tachigo\Database\TachigoDatabaseModule($yml_configuration_parser), new \Tachigo\Admin\TachigoAdminModule($yml_configuration_parser), new \Tachigo\User\TachigoUserAdmin($yml_configuration_parser), new \Tachigo\User\TachigoUserAware($yml_configuration_parser), new \Tachigo\WWW\TachigoWWWAdmin($yml_configuration_parser), new \Tachigo\Forum\TachigoForumAdmin($yml_configuration_parser), new \Tachigo\Game\TachigoGameAdmin($yml_configuration_parser), new \Tachigo\TinyMCE\TachigoTinyMCEModule($yml_configuration_parser));
foreach ($modules as $module) {
    $configuration->merge($module());
    $kernel->registerModule($module);
}
$kernel->initAppServiceContainer('TachigoAdminServiceContainer');
$app_container = $kernel->getAppServiceContainer();
$app_container->bootstrapKernel($kernel);
$app_container->tag('debugger');
// 这个地方开始自行调用接收请求的逻辑
\Zero\Component\Kernel\HttpProcessor::process($app_container);
Beispiel #3
0
<?php

/**
 * 入口文件
 */
use Symfony\Component\Yaml\Yaml;
use Zero\Component\Kernel\AppKernel;
require 'config.php';
$kernel = new AppKernel(Yaml::parse(file_get_contents(APP_ROOT . '/app/config.yml')));
$configuration = $kernel->getConfiguration();
// yml格式的配置文件解析器
$yml_configuration_parser = function ($path) {
    if ($path) {
        return Yaml::parse(file_get_contents($path));
    }
    return array();
};
$modules = array(new \Zero\Module\Zero\Twig\ZeroTwigModule($yml_configuration_parser), new \ThreeJsDemo\ThreeJsDemoModule($yml_configuration_parser), new \AoaoDo\LexusGBook\AoaoDoLexusGBookModule($yml_configuration_parser));
foreach ($modules as $module) {
    $configuration->merge($module());
    $kernel->registerModule($module);
}
$kernel->initAppServiceContainer('WebH5ServiceContainer');
$app_container = $kernel->getAppServiceContainer();
$app_container->tag('debugger');
// 这个地方开始自行调用接收请求的逻辑
\Zero\Component\Kernel\HttpProcessor::process($kernel, $app_container);
Beispiel #4
0
<?php

/**
 * 入口文件
 */
use Symfony\Component\Yaml\Yaml;
use Zero\Component\Kernel\AppKernel;
require 'config.php';
$kernel = new AppKernel(Yaml::parse(APP_ROOT . '/app/config.' . ENV . '.yml'));
$configuration = $kernel->getConfiguration();
// yaml格式的配置文件解析器
$yml_configuration_parser = function ($path) {
    return Yaml::parse(file_get_contents($path));
};
$modules = array(new Zero\Module\Demo\Demo9173\Demo9173Module($yml_configuration_parser));
foreach ($modules as $module) {
    $configuration->merge($module());
    $kernel->registerModule($module);
}
$kernel->initAppServiceContainer();
$app_container = $kernel->getAppServiceContainer();
$app_container->tag('debugger');
// 这个地方开始自行调用接收请求的逻辑
Beispiel #5
0
<?php

use Symfony\Component\Yaml\Yaml;
use Zero\Component\Kernel\AppKernel;
require '../../config/config.http.php';
header('Access-Control-Allow-Origin: *');
define('CACHE_ROOT', APP_ROOT . '/cache');
// 配置文件地址
$kernel = new AppKernel(Yaml::parse(file_get_contents(APP_ROOT . '/config/config.' . ENTRY . '.yml')));
$configuration = $kernel->getConfiguration();
// yml格式的配置文件解析器
$yml_configuration_parser = function ($path) {
    if ($path) {
        return Yaml::parse(file_get_contents($path));
    }
    return array();
};
$modules = array(new \Zero\Module\Zero\Http\ZeroHttpModule($yml_configuration_parser), new \Zero\Module\Zero\Twig\ZeroTwigModule($yml_configuration_parser), new \Zero\Module\Metronic\FrontendModule\MetronicFrontendModule($yml_configuration_parser), new \Zero\Module\Metronic\AssetsModule\MetronicAssetsModule($yml_configuration_parser), new \Tachigo\Database\TachigoDatabaseModule($yml_configuration_parser), new \Tachigo\User\TachigoUserModule($yml_configuration_parser));
foreach ($modules as $module) {
    $configuration->merge($module());
    $kernel->registerModule($module);
}
$kernel->initAppServiceContainer('TachigoUserServiceContainer');
$app_container = $kernel->getAppServiceContainer();
$app_container->bootstrapKernel($kernel);
$app_container->tag('debugger');
// 这个地方开始自行调用接收请求的逻辑
\Zero\Component\Kernel\HttpProcessor::process($app_container);
Beispiel #6
0
/**
 * Created by PhpStorm.
 * User: tachigo
 * Date: 16-8-23
 * Time: 下午3:12
 */
use Symfony\Component\Yaml\Yaml;
use Zero\Component\Kernel\AppKernel;
require '../../config/config.http.php';
define('CACHE_ROOT', APP_ROOT . '/cache');
// 配置文件地址
$kernel = new AppKernel(Yaml::parse(file_get_contents(APP_ROOT . '/config/config.' . ENTRY . '.yml')));
$configuration = $kernel->getConfiguration();
// yml格式的配置文件解析器
$yml_configuration_parser = function ($path) {
    if ($path) {
        return Yaml::parse(file_get_contents($path));
    }
    return array();
};
$modules = array(new \Zero\Module\Zero\Http\ZeroHttpModule($yml_configuration_parser), new \Zero\Module\Zero\Twig\ZeroTwigModule($yml_configuration_parser), new \Zero\Module\Metronic\FrontendModule\MetronicFrontendModule($yml_configuration_parser), new \Zero\Module\Metronic\AssetsModule\MetronicAssetsModule($yml_configuration_parser), new \Tachigo\Database\TachigoDatabaseModule($yml_configuration_parser), new \Tachigo\WWW\TachigoWWWModule($yml_configuration_parser), new \Tachigo\User\TachigoUserAware($yml_configuration_parser), new \Tachigo\TinyMCE\TachigoTinyMCEModule($yml_configuration_parser));
foreach ($modules as $module) {
    $configuration->merge($module());
    $kernel->registerModule($module);
}
$kernel->initAppServiceContainer('TachigoWWWServiceContainer');
$app_container = $kernel->getAppServiceContainer();
$app_container->bootstrapKernel($kernel);
$app_container->tag('debugger');
// 这个地方开始自行调用接收请求的逻辑
\Zero\Component\Kernel\HttpProcessor::process($app_container);
Beispiel #7
0
 * User: tachigo
 * Date: 16-8-23
 * Time: 下午3:12
 */
use Symfony\Component\Yaml\Yaml;
use Zero\Component\Kernel\AppKernel;
require '../../config/config.http.php';
define('CACHE_ROOT', APP_ROOT . '/cache');
define('FORUM', 'tachigo');
// 定义论坛ID或搜索值
// 配置文件地址
$kernel = new AppKernel(Yaml::parse(file_get_contents(APP_ROOT . '/config/config.' . ENTRY . '.yml')));
$configuration = $kernel->getConfiguration();
// yml格式的配置文件解析器
$yml_configuration_parser = function ($path) {
    if ($path) {
        return Yaml::parse(file_get_contents($path));
    }
    return array();
};
$modules = array(new \Zero\Module\Zero\Http\ZeroHttpModule($yml_configuration_parser), new \Zero\Module\Zero\Twig\ZeroTwigModule($yml_configuration_parser), new \Zero\Module\Metronic\FrontendModule\MetronicFrontendModule($yml_configuration_parser), new \Zero\Module\Metronic\AssetsModule\MetronicAssetsModule($yml_configuration_parser), new \Tachigo\Database\TachigoDatabaseModule($yml_configuration_parser), new \Tachigo\User\TachigoUserAware($yml_configuration_parser), new \Tachigo\Forum\TachigoForumModule($yml_configuration_parser), new \Tachigo\TinyMCE\TachigoTinyMCEModule($yml_configuration_parser));
foreach ($modules as $module) {
    $configuration->merge($module());
    $kernel->registerModule($module);
}
$kernel->initAppServiceContainer('TachigoForumServiceContainer');
$app_container = $kernel->getAppServiceContainer();
$app_container->bootstrapKernel($kernel);
$app_container->tag('debugger');
// 这个地方开始自行调用接收请求的逻辑
\Zero\Component\Kernel\HttpProcessor::process($app_container);
Beispiel #8
0
<?php

/**
 * 入口文件
 */
use Symfony\Component\Yaml\Yaml;
use Zero\Component\Kernel\AppKernel;
require '../config/config.http.php';
define('CACHE_ROOT', APP_ROOT . '/cache');
// 配置文件地址
$kernel = new AppKernel(Yaml::parse(file_get_contents(APP_ROOT . '/app/config/config.' . ENTRY . '_' . ENV . '.yml')));
$configuration = $kernel->getConfiguration();
// yml格式的配置文件解析器
$yml_configuration_parser = function ($path) {
    if ($path) {
        return Yaml::parse(file_get_contents($path));
    }
    return array();
};
$modules = array(new \Zero\Module\Zero\Twig\ZeroTwigModule($yml_configuration_parser), new \Zero\Module\Metronic\AssetsModule\MetronicAssetsModule($yml_configuration_parser), new \Zero\Module\Metronic\AdminModule\MetronicAdminModule($yml_configuration_parser), new \TknyMed\AdminModule\TknyMedAdminModule($yml_configuration_parser), new \TknyMed\DatabaseModule\TknyMedDatabaseModule($yml_configuration_parser), new \TknyMed\PortalModule\TknyMedPortalAdministration($yml_configuration_parser), new \TknyMed\ForumModule\TknyMedForumAdministration($yml_configuration_parser));
foreach ($modules as $module) {
    $configuration->merge($module());
    $kernel->registerModule($module);
}
$kernel->initAppServiceContainer('TknyMedAdminServiceContainer');
$app_container = $kernel->getAppServiceContainer();
$app_container->tag('debugger');
// 这个地方开始自行调用接收请求的逻辑
\Zero\Component\Kernel\HttpProcessor::process($kernel, $app_container);
Beispiel #9
0
<?php

use Symfony\Component\Yaml\Yaml;
use Zero\Component\Kernel\AppKernel;
require '../config/config.http.php';
define('CACHE_ROOT', APP_ROOT . '/cache');
// 配置文件地址
$kernel = new AppKernel(Yaml::parse(file_get_contents(APP_ROOT . '/app/config/config.' . ENTRY . '_' . ENV . '.yml')));
$configuration = $kernel->getConfiguration();
// yml格式的配置文件解析器
$yml_configuration_parser = function ($path) {
    if ($path) {
        return Yaml::parse(file_get_contents($path));
    }
    return array();
};
$modules = array(new \Zero\Module\Zero\Twig\ZeroTwigModule($yml_configuration_parser), new \TknyMed\DatabaseModule\TknyMedDatabaseModule($yml_configuration_parser), new \TknyMed\PortalModule\TknyMedPortalModule($yml_configuration_parser));
foreach ($modules as $module) {
    $configuration->merge($module());
    $kernel->registerModule($module);
}
$kernel->initAppServiceContainer('TknyMedPortalServiceContainer');
$app_container = $kernel->getAppServiceContainer();
$app_container->tag('debugger');
// 这个地方开始自行调用接收请求的逻辑
\Zero\Component\Kernel\HttpProcessor::process($kernel, $app_container);