Initial Commit
This commit is contained in:
30
app/lib/Yiinitializr/config/console.php
Normal file
30
app/lib/Yiinitializr/config/console.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/**
|
||||
* Custom console.php config file.
|
||||
*
|
||||
* @author Antonio Ramirez <amigo.cobos@gmail.com>
|
||||
* @link http://www.ramirezcobos.com/
|
||||
* @link http://www.2amigos.us/
|
||||
* @copyright 2013 2amigOS! Consultation Group LLC
|
||||
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
|
||||
*/
|
||||
/**
|
||||
* Include required classes
|
||||
*/
|
||||
require_once dirname(__FILE__) . '/../Helpers/Initializer.php';
|
||||
require_once dirname(__FILE__) . '/../Helpers/ArrayX.php';
|
||||
|
||||
/**
|
||||
* Return the configuration array appending composer callback methods
|
||||
*/
|
||||
return Yiinitializr\Helpers\ArrayX::merge(
|
||||
Yiinitializr\Helpers\Initializer::config('console', array('common', 'env', 'local')),
|
||||
array(
|
||||
'params' => array(
|
||||
'composer.callbacks' => array(
|
||||
'post-update' => array('yiic', 'migrate'),
|
||||
'post-install' => array('yiic', 'migrate'),
|
||||
)
|
||||
),
|
||||
)
|
||||
);
|
||||
40
app/lib/Yiinitializr/config/settings.php
Normal file
40
app/lib/Yiinitializr/config/settings.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
/**
|
||||
* Yiinitializr configuration file.
|
||||
*
|
||||
* @author Antonio Ramirez <amigo.cobos@gmail.com>
|
||||
* @link http://www.ramirezcobos.com/
|
||||
* @link http://www.2amigos.us/
|
||||
* @copyright 2013 2amigOS! Consultation Group LLC
|
||||
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
|
||||
*/
|
||||
$dirname = dirname(__FILE__);
|
||||
$app = $dirname . '/../../..';
|
||||
$root = $app . '/..';
|
||||
|
||||
return array(
|
||||
'yii' => array(
|
||||
'path' => $app . '/lib/vendor/yiisoft/yii/framework'
|
||||
),
|
||||
'yiinitializr' => array(
|
||||
'config' => array(
|
||||
'console' => $dirname . '/console.php'
|
||||
),
|
||||
'app' => array(
|
||||
'root' => $root,
|
||||
'directories' => array(
|
||||
'config' => array(
|
||||
'main' => $app . '/config',
|
||||
'console' => $app . '/config',
|
||||
'test' => $app . '/config'
|
||||
),
|
||||
'runtime' => array(
|
||||
$app
|
||||
),
|
||||
'assets' => array(
|
||||
$root . '/www'
|
||||
)
|
||||
)
|
||||
),
|
||||
)
|
||||
);
|
||||
Reference in New Issue
Block a user