Skip to content

Instantly share code, notes, and snippets.

@odai-alali
Created May 2, 2019 14:06
Show Gist options
  • Save odai-alali/8062326a39358a86dc2703a16852f331 to your computer and use it in GitHub Desktop.
Save odai-alali/8062326a39358a86dc2703a16852f331 to your computer and use it in GitHub Desktop.
merged config
{
"name": "yiisoft/yii-project-template",
"type": "project",
"description": "Yii Framework Project Template",
"keywords": [
"yii",
"app",
"project",
"template"
],
"homepage": "https://github.com/yiisoft/yii-project-template",
"license": "BSD-3-Clause",
"support": {
"source": "https://github.com/yiisoft/yii-project-template",
"issues": "https://github.com/yiisoft/yii-project-template/issues",
"wiki": "https://github.com/yiisoft/yii-project-template/wiki",
"forum": "http://www.yiiframework.com/forum/"
},
"authors": [
{
"name": "Qiang Xue",
"role": "Founder and project lead",
"email": "[email protected]",
"homepage": "http://www.yiiframework.com/"
},
{
"name": "Alexander Makarov",
"role": "Core framework development",
"email": "[email protected]",
"homepage": "http://rmcreative.ru/"
},
{
"name": "Maurizio Domba",
"role": "Core framework development",
"homepage": "http://mdomba.info/"
},
{
"name": "Carsten Brandt",
"role": "Core framework development",
"email": "[email protected]",
"homepage": "http://cebe.cc/"
},
{
"name": "Paul Klimov",
"role": "Core framework development",
"email": "[email protected]"
},
{
"name": "Dmitry Naumenko",
"role": "Core framework development",
"email": "[email protected]"
},
{
"name": "Boudewijn Vahrmeijer",
"role": "Core framework development",
"email": "[email protected]",
"homepage": "http://dynasource.eu"
}
],
"minimum-stability": "dev",
"require": {
"php": "^7.2",
"yiisoft/yii-base-web": "^3.0@dev",
"yiisoft/yii-dataview": "^3.0@dev",
"yiisoft/yii-bootstrap4": "^3.0@dev",
"yiisoft/yii-jquery": "^3.0@dev",
"yiisoft/yii-console": "^3.0@dev",
"yiisoft/cache": "^3.0@dev",
"yiisoft/di": "^3.0@dev",
"yiisoft/log": "^3.0@dev",
"yiisoft/log-target-file": "^3.0@dev",
"yiisoft/rbac": "^3.0@dev",
"yiisoft/view": "^3.0@dev"
},
"require-dev": {
"foxy/foxy": "^1.0",
"yiisoft/yii-debug": "^3.0@dev",
"hiqdev/composer-config-plugin": "^1.0@dev"
},
"extra": {
"branch-alias": {
"dev-master": "3.0.x-dev"
},
"config-plugin": {
"common": "config/common.php",
"params": "config/params.php",
"web": "config/web.php"
}
},
"config": {
"foxy": {
"enable-packages": {
"*": true
}
},
"fxp-asset": {
"enabled": false
}
}
}
<?php
// my config
return [
'app' => [
// 'basePath' => __DIR__ . '/../src',
'controllerNamespace' => app\controllers::class,
],
];
<?php
// in vendor/hiqdev/composer-config-plugin-output/
$baseDir = dirname(dirname(dirname(__DIR__)));
defined('COMPOSER_CONFIG_PLUGIN_BASEDIR') or define('COMPOSER_CONFIG_PLUGIN_BASEDIR', $baseDir);
$_ENV = array_merge((array) require __DIR__ . '/dotenv.php', (array) $_ENV);
require_once $baseDir . '/vendor/yiisoft/yii-core/config/defines.php';
return array (
'Psr\\Container\\ContainerInterface' =>
yii\di\Reference::__set_state(array(
'id' => 'container',
)),
'container' => function ($container) {
return $container;
},
'yii\\di\\Factory' =>
yii\di\Reference::__set_state(array(
'id' => 'factory',
)),
'yii\\di\\FactoryInterface' =>
yii\di\Reference::__set_state(array(
'id' => 'factory',
)),
'factory' =>
array (
'__class' => 'yii\\di\\Factory',
'__construct()' =>
array (
'definitions' =>
array (
),
'parent' =>
yii\di\Reference::__set_state(array(
'id' => 'container',
)),
),
),
'yii\\di\\Injector' =>
yii\di\Reference::__set_state(array(
'id' => 'injector',
)),
'injector' =>
array (
'__class' => 'yii\\di\\Injector',
),
'yii\\base\\Application' =>
yii\di\Reference::__set_state(array(
'id' => 'app',
)),
'app' =>
array (
'id' => 'yii-console',
'name' => 'Yii Console',
'bootstrap' =>
array (
'logger' => 'logger',
'debug' => 'debug',
),
'params' =>
array (
'app.id' => 'yii-console',
'app.name' => 'Yii Console',
'i18n.locale' => 'en-US',
'i18n.encoding' => 'UTF-8',
'i18n.timezone' => 'UTC',
'request.cookieValidationKey' => NULL,
'logger.traceLevel' => 3,
'db.name' => NULL,
'db.host' => NULL,
'db.port' => NULL,
'db.user' => NULL,
'db.password' => '',
'adminEmail' => '[email protected]',
'db.dsn' => 'mysql:host=localhost;dbname=myproject;charset=utf8',
'db.username' => 'root',
'favicon.ico' => '@yii/app/../public/favicon.ico',
'debug.enabled' => true,
'debug.allowedIPs' =>
array (
0 => '127.0.0.1',
),
),
'__class' => 'yii\\web\\Application',
'basePath' => $baseDir . '/vendor/yiisoft/yii-base-web/src',
'controllerNamespace' => 'app\\controllers',
'modules' =>
array (
'debug' =>
array (
'__class' => 'Yiisoft\\Yii\\Debug\\Module',
'allowedIPs' =>
array (
0 => '127.0.0.1',
),
'panels' =>
array (
'config' =>
array (
'__class' => 'Yiisoft\\Yii\\Debug\\Panels\\ConfigPanel',
),
'request' =>
array (
'__class' => 'Yiisoft\\Yii\\Debug\\Panels\\RequestPanel',
),
'log' =>
array (
'__class' => 'Yiisoft\\Yii\\Debug\\Panels\\LogPanel',
),
'profiling' =>
array (
'__class' => 'Yiisoft\\Yii\\Debug\\Panels\\ProfilingPanel',
),
'db' =>
array (
'__class' => 'Yiisoft\\Yii\\Debug\\Panels\\DbPanel',
),
'event' =>
array (
'__class' => 'Yiisoft\\Yii\\Debug\\Panels\\EventPanel',
),
'assets' =>
array (
'__class' => 'Yiisoft\\Yii\\Debug\\Panels\\AssetPanel',
),
'mail' =>
array (
'__class' => 'Yiisoft\\Yii\\Debug\\Panels\\MailPanel',
),
'timeline' =>
array (
'__class' => 'Yiisoft\\Yii\\Debug\\Panels\\TimelinePanel',
),
'user' =>
array (
'__class' => 'Yiisoft\\Yii\\Debug\\Panels\\UserPanel',
),
'router' =>
array (
'__class' => 'Yiisoft\\Yii\\Debug\\Panels\\RouterPanel',
),
),
),
),
),
'Psr\\Log\\LoggerInterface' =>
yii\di\Reference::__set_state(array(
'id' => 'logger',
)),
'logger' => function () {
return new \Yiisoft\Log\Logger([
new Yiisoft\Log\FileTarget("/tmp/log.txt")
]);
},
'yii\\base\\Aliases' =>
yii\di\Reference::__set_state(array(
'id' => 'aliases',
)),
'aliases' =>
array (
'@Yiisoft/Strings' => $baseDir . '/vendor/yiisoft/strings/src',
'@Yiisoft/Arrays' => $baseDir . '/vendor/yiisoft/arrays/src',
'@Yiisoft/Inflector' => $baseDir . '/vendor/yiisoft/inflector/src',
'@yii' => $baseDir . '/vendor/yiisoft/yii-core/src',
'@yii/tests' => $baseDir . '/vendor/yiisoft/yii-core/tests',
'@yii/view' => $baseDir . '/vendor/yiisoft/view/src/view',
'@yii/widgets' => $baseDir . '/vendor/yiisoft/view/src/widgets',
'@Psr/Http/Message' => $baseDir . '/vendor/psr/http-message/src',
'@yii/web' => $baseDir . '/vendor/yiisoft/yii-web/src',
'@Psr/Container' => $baseDir . '/vendor/psr/container/src',
'@yii/di' => $baseDir . '/vendor/yiisoft/di/src',
'@Psr/Log' => $baseDir . '/vendor/psr/log/Psr/Log',
'@Yiisoft/Log' => $baseDir . '/vendor/yiisoft/log-target-file/src',
'@Psr/SimpleCache' => $baseDir . '/vendor/psr/simple-cache/src',
'@Yiisoft/Cache' => $baseDir . '/vendor/yiisoft/cache/src',
'@yii/db' => $baseDir . '/vendor/yiisoft/db/src',
'@yii/db/tests' => $baseDir . '/vendor/yiisoft/db/tests',
'@yii/activerecord' => $baseDir . '/vendor/yiisoft/active-record/src',
'@yii/activerecord/tests' => $baseDir . '/vendor/yiisoft/active-record/tests',
'@Doctrine/Common/Lexer' => $baseDir . '/vendor/doctrine/lexer/lib/Doctrine/Common/Lexer',
'@Egulias/EmailValidator' => $baseDir . '/vendor/egulias/email-validator/EmailValidator',
'@Symfony/Polyfill/Iconv' => $baseDir . '/vendor/symfony/polyfill-iconv',
'@Symfony/Polyfill/Mbstring' => $baseDir . '/vendor/symfony/polyfill-mbstring',
'@Symfony/Polyfill/Php72' => $baseDir . '/vendor/symfony/polyfill-php72',
'@Symfony/Polyfill/Intl/Idn' => $baseDir . '/vendor/symfony/polyfill-intl-idn',
'@Yiisoft/Yii/SwiftMailer' => $baseDir . '/vendor/yiisoft/yii-swiftmailer/src',
'@Symfony/Polyfill/Ctype' => $baseDir . '/vendor/symfony/polyfill-ctype',
'@Dotenv' => $baseDir . '/vendor/vlucas/phpdotenv/src',
'@hiqdev/composer/config' => $baseDir . '/vendor/hiqdev/composer-config-plugin/src',
'@yii/app' => $baseDir . '/vendor/yiisoft/yii-base-web/src',
'@Yiisoft/Yii/DataView' => $baseDir . '/vendor/yiisoft/yii-dataview/src',
'@Yiisoft/Yii/JQuery' => $baseDir . '/vendor/yiisoft/yii-jquery/src',
'@Yiisoft/Yii/Bootstrap4' => $baseDir . '/vendor/yiisoft/yii-bootstrap4/src',
'@cebe/markdown' => $baseDir . '/vendor/cebe/markdown',
'@Yiisoft/Yii/Console' => $baseDir . '/vendor/yiisoft/yii-console/src',
'@Yiisoft/Rbac' => $baseDir . '/vendor/yiisoft/rbac/src',
'@Foxy' => $baseDir . '/vendor/foxy/foxy',
'@Yiisoft/Yii/Debug' => $baseDir . '/vendor/yiisoft/yii-debug/src',
'@Yiisoft/Yii/Rest' => $baseDir . '/vendor/yiisoft/yii-rest/src',
'__class' => 'yii\\base\\Aliases',
'@root' => $baseDir . '',
'@vendor' => '@root/vendor',
'@public' => '@root/public',
'@runtime' => '@root/runtime',
'@bower' => '@vendor/bower-asset',
'@npm' => '@vendor/npm-asset',
'@web' => '/',
),
'yii\\base\\ErrorHandler' =>
yii\di\Reference::__set_state(array(
'id' => 'errorHandler',
)),
'errorHandler' =>
array (
'__class' => 'yii\\web\\ErrorHandler',
'errorAction' => 'site/error',
),
'yii\\base\\View' =>
yii\di\Reference::__set_state(array(
'id' => 'view',
)),
'view' =>
array (
'__class' => 'yii\\web\\View',
),
'yii\\base\\Request' =>
yii\di\Reference::__set_state(array(
'id' => 'request',
)),
'request' =>
array (
'__class' => 'yii\\web\\Request',
'cookieValidationKey' => '',
'enableCookieValidation' => false,
),
'yii\\base\\Response' =>
yii\di\Reference::__set_state(array(
'id' => 'response',
)),
'response' =>
array (
'__class' => 'yii\\web\\Response',
'formatters' =>
array (
'html' =>
array (
'__class' => 'yii\\web\\formatters\\HtmlResponseFormatter',
),
'xml' =>
array (
'__class' => 'yii\\web\\formatters\\XmlResponseFormatter',
),
'json' =>
array (
'__class' => 'yii\\web\\formatters\\JsonResponseFormatter',
),
'jsonp' =>
array (
'__class' => 'yii\\web\\formatters\\JsonResponseFormatter',
'useJsonp' => true,
),
),
),
'yii\\profile\\ProfilerInterface' =>
yii\di\Reference::__set_state(array(
'id' => 'profiler',
)),
'profiler' =>
array (
'__class' => 'yii\\profile\\Profiler',
),
'security' =>
array (
'__class' => 'yii\\base\\Security',
),
'yii\\i18n\\Locale' =>
yii\di\Reference::__set_state(array(
'id' => 'locale',
)),
'locale' =>
array (
'__class' => 'yii\\i18n\\Locale',
'__construct()' =>
array (
'localeString' => 'en-US',
),
),
'formatter' =>
array (
'__class' => 'yii\\i18n\\Formatter',
),
'translator' =>
array (
'__class' => 'yii\\i18n\\Translator',
'translations' =>
array (
'yii' =>
array (
'__class' => 'yii\\i18n\\PhpMessageSource',
'sourceLanguage' => 'en-US',
'basePath' => '@yii/messages',
),
'yii-base-web' =>
array (
'__class' => 'yii\\i18n\\PhpMessageSource',
'sourceLanguage' => 'en-US',
'basePath' => '@yii/app/messages',
),
),
),
'yii\\i18n\\I18N' =>
yii\di\Reference::__set_state(array(
'id' => 'i18n',
)),
'i18n' =>
array (
'__class' => 'yii\\i18n\\I18N',
'__construct()' =>
array (
'encoding' => 'UTF-8',
'timezone' => 'UTC',
'locale' =>
yii\di\Reference::__set_state(array(
'id' => 'locale',
)),
'translator' =>
yii\di\Reference::__set_state(array(
'id' => 'translator',
)),
),
),
'mutex' =>
array (
'__class' => 'Yiisoft\\Mutex\\FileMutex',
),
'yii\\view\\Theme' =>
yii\di\Reference::__set_state(array(
'id' => 'theme',
)),
'theme' =>
array (
'__class' => 'yii\\view\\Theme',
),
'urlManager' =>
array (
'__class' => 'yii\\web\\UrlManager',
'enablePrettyUrl' => true,
'showScriptName' => false,
),
'urlNormalizer' =>
array (
'__class' => 'yii\\web\\UrlNormalizer',
),
'session' =>
array (
'__class' => 'yii\\web\\Session',
),
'yii\\web\\User' =>
yii\di\Reference::__set_state(array(
'id' => 'user',
)),
'user' =>
array (
'__class' => 'yii\\web\\User',
'identityClass' => 'yii\\app\\models\\User',
),
'assetManager' =>
array (
'__class' => 'yii\\web\\AssetManager',
'appendTimestamp' => true,
),
'Psr\\SimpleCache\\CacheInterface' =>
yii\di\Reference::__set_state(array(
'id' => 'cache',
)),
'Yiisoft\\Cache\\CacheInterface' =>
yii\di\Reference::__set_state(array(
'id' => 'cache',
)),
'cache' =>
array (
'__class' => 'Yiisoft\\Cache\\Cache',
'handler' =>
array (
'__class' => 'Yiisoft\\Cache\\FileCache',
'keyPrefix' => 'my-project',
),
),
'yii\\db\\ConnectionInterface' =>
yii\di\Reference::__set_state(array(
'id' => 'db',
)),
'db' =>
array (
'__class' => 'yii\\db\\Connection',
'dsn' => 'mysql:host=localhost;dbname=myproject;charset=utf8',
'username' => 'root',
'password' => '',
),
'mailer' =>
array (
'__class' => 'Yiisoft\\Yii\\SwiftMailer\\Mailer',
),
'Yiisoft\\Rbac\\RuleFactoryInterface' =>
array (
'__class' => 'Yiisoft\\Rbac\\RuleFactory',
),
'Yiisoft\\Rbac\\CheckAccessInterface' =>
array (
'__class' => 'Yiisoft\\Rbac\\DenyAll',
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment