本文整理匯總了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();