Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
client_console.php
1 <?php
2 /**
3  *
4  */
5 Yii::setPathOfAlias('site', dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..');
6 
7 return array(
8  'components' => array(
9  'db' => array(
10  //DB connection string
11  'connectionString' => 'mysql:host=qa-db-mysql55.office;port=3306;dbname=gpnphp_unittests_random_15502910420909',
12  //whether to turn on prepare emulation. Defaults to false, meaning PDO will use the native prepare support if available.
13  'emulatePrepare' => true,
14  //the default prefix for table names. Defaults to null, meaning no table prefix.
15  'tablePrefix' => 'gportal_',
16  //DB username
17  'username' => 'root',
18  //DB Password
19  'password' => '',
20  'charset' => 'utf8',
21  //whether the database connection should be automatically established the component is being initialized.
22  'autoConnect' => false,
23  //number of seconds that table metadata can remain valid in cache. 86400, 0 - disabled
24  'schemaCachingDuration' => 0,
25  ),
26  'log' => array(
27  'class' => 'CLogRouter',
28  'routes' => array(
29  array(
30  'class' => 'CProfileLogRoute',
31  'levels' => 'profile',
32  ),
33  'file'=>array(
34  'class' => 'CFileLogRoute',
35  'levels' => 'error, warning, info',
36  'logPath' => dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'common/runtime',
37  ),
38  ),
39  ),
40  ),
41  //common directory path
42  'basePath' => dirname(__FILE__) . DIRECTORY_SEPARATOR . '..',
43  // preloading 'log' component
44  'preload' => array('log'),
45  'charset' => 'UTF-8',
46  //import folders with files, classes
47  'import' => array(
48  'site.common.models.*',
49  'site.common.components.*',
50  'site.common.extensions.*',
51  'site.common.components.content.*',
52  'application.components.*',
53  'application.controllers.*',
54  'ext.*',
55  'system.caching.*'
56  ),
57  'modules'=>array(
58  'apalines' => include(dirname(__FILE__) . DIRECTORY_SEPARATOR . '_apalines.php'),
59  ),
60  //mapping from command name to command configurations
61  'commandMap' => array(
62  'migrate' => array(
63  'class' => 'system.cli.commands.MigrateCommand',
64  //folder contained migrations
65  'migrationPath' => 'site.common.migrations',
66  //migration tablename
67  'migrationTable' => 'gportal_migration',
68  ),
69  'processAPA' => array(
70  'class' => 'site.common.modules.apalines.commands.processAPACommand',
71  ),
72  ),
73 
74 );