本文整理汇总了PHP中ConfigHelper::merge方法的典型用法代码示例。如果您正苦于以下问题:PHP ConfigHelper::merge方法的具体用法?PHP ConfigHelper::merge怎么用?PHP ConfigHelper::merge使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ConfigHelper
的用法示例。
在下文中一共展示了ConfigHelper::merge方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: defined
<?php
defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('STDIN') or define('STDIN', fopen('php://stdin', 'r'));
require __DIR__ . '/../vendor/yiisoft/yii/framework/yii.php';
require __DIR__ . '/../vendor/crisu83/yii-consoletools/helpers/ConfigHelper.php';
$config = ConfigHelper::merge(array(__DIR__ . '/config/main.php', __DIR__ . '/config/console.php', __DIR__ . '/config/main-environment.php', __DIR__ . '/config/console-local.php'));
$app = Yii::createConsoleApplication($config);
$app->commandRunner->addCommands(YII_PATH . '/cli/commands');
$app->run();
示例2: ini_set
<?php
ini_set('display_errors', 1);
$root = dirname(__DIR__);
$yii = $root . '/vendor/yiisoft/yii/framework/yiilite.php';
$global = $root . '/app/helpers/global.php';
$builder = $root . '/vendor/crisu83/yii-consoletools/helpers/ConfigHelper.php';
require_once $yii;
require_once $global;
require_once $builder;
$config = ConfigHelper::merge(array($root . '/app/config/main.php', $root . '/app/config/web.php', $root . '/app/config/local.php'));
Yii::createWebApplication($config)->run();
示例3: defined
<?php
defined('YII_DEBUG') or define('YII_DEBUG', true);
require __DIR__ . '/../vendor/yiisoft/yii/framework/yii.php';
require __DIR__ . '/../app/components/WebApplication.php';
require __DIR__ . '/../app/helpers/global.php';
require __DIR__ . '/../vendor/crisu83/yii-consoletools/helpers/ConfigHelper.php';
$config = ConfigHelper::merge(array(__DIR__ . '/../app/config/main.php', __DIR__ . '/../app/config/web.php', __DIR__ . '/../app/config/main-environment.php', __DIR__ . '/../app/config/main-local.php'));
$app = Yii::createApplication('WebApplication', $config);
$app->run();
示例4: defined
<?php
/**
* This is the bootstrap file for test application.
* This file should be removed when the application is deployed for production.
*/
defined('YII_DEBUG') or define('YII_DEBUG', true);
require __DIR__ . '/../vendor/yiisoft/yii/framework/yii.php';
require __DIR__ . '/../app/components/WebApplication.php';
require __DIR__ . '/../app/helpers/global.php';
require __DIR__ . '/../vendor/crisu83/yii-consoletools/helpers/ConfigHelper.php';
$config = ConfigHelper::merge(array(__DIR__ . '/../app/config/main.php', __DIR__ . '/../app/config/web.php', __DIR__ . '/../app/config/test.php'));
$app = Yii::createApplication('WebApplication', $config);
$app->run();