File tree Expand file tree Collapse file tree 2 files changed +39
-5
lines changed
Expand file tree Collapse file tree 2 files changed +39
-5
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ public function registerModules($environment)
3131 new Trident \Module \FrameworkModule \TridentFrameworkModule (),
3232 new Trident \Module \TemplatingModule \TridentTemplatingModule (),
3333 new Trident \Module \DoctrineModule \TridentDoctrineModule (),
34+ new Trident \Module \MigrationModule \TridentMigrationModule (),
3435 new Trident \Module \SecurityModule \TridentSecurityModule (),
3536 ];
3637
Original file line number Diff line number Diff line change 11<?php
22
3+ $ dbHost = '' ;
4+ $ dbPort = '' ;
5+ $ dbUser = '' ;
6+ $ dbPass = '' ;
7+ $ dbName = '' ;
8+
39return [
410 'caching ' => [
511 'default ' => 'memcached ' ,
1016 ],
1117 'database ' => [
1218 'default ' => [
13- 'host ' => 'localhost ' ,
14- 'username ' => 'tifa ' ,
15- 'password ' => '' ,
16- 'port ' => '3306 ' ,
17- 'database ' => 'Test '
19+ 'host ' => $ dbHost ,
20+ 'port ' => $ dbPort ,
21+ 'username ' => $ dbUser ,
22+ 'password ' => $ dbPass ,
23+ 'database ' => $ dbName
24+ ]
25+ ],
26+ 'migrations ' => [
27+ 'paths ' => [
28+ 'migrations ' => __DIR__ .'/../migrations '
29+ ],
30+ 'environments ' => [
31+ 'default_migration_table ' => 'migrations_tracking ' ,
32+ 'default_database ' => 'dev ' ,
33+ 'prod ' => [
34+ 'adapter ' => 'mysql ' ,
35+ 'host ' => $ dbHost ,
36+ 'name ' => $ dbName ,
37+ 'user ' => $ dbUser ,
38+ 'pass ' => $ dbPass ,
39+ 'port ' => $ dbPort ,
40+ 'charset ' => 'utf8 '
41+ ],
42+ 'dev ' => [
43+ 'adapter ' => 'mysql ' ,
44+ 'host ' => $ dbHost ,
45+ 'name ' => $ dbName ,
46+ 'user ' => $ dbUser ,
47+ 'pass ' => $ dbPass ,
48+ 'port ' => $ dbPort ,
49+ 'charset ' => 'utf8 '
50+ ]
1851 ]
1952 ],
2053 'security ' => [
You can’t perform that action at this time.
0 commit comments