1 | <?php |
||
13 | class PhinxController extends AbstractConsoleController |
||
14 | { |
||
15 | /** |
||
16 | * Phinx service |
||
17 | * |
||
18 | * @var ZfPhinxService |
||
19 | */ |
||
20 | private $phinxService; |
||
21 | |||
22 | /** |
||
23 | * @param ZfPhinxService $phinxService |
||
24 | */ |
||
25 | 1 | public function __construct(ZfPhinxService $phinxService) |
|
29 | |||
30 | /** |
||
31 | * Runs 'Test' command |
||
32 | * |
||
33 | * @return void |
||
34 | */ |
||
35 | public function testAction() |
||
40 | |||
41 | /** |
||
42 | * Runs 'Create' command |
||
43 | * |
||
44 | * @return void |
||
45 | */ |
||
46 | public function createAction() |
||
51 | |||
52 | /** |
||
53 | * Runs 'Migrate' command |
||
54 | * |
||
55 | * @return void |
||
56 | */ |
||
57 | public function migrateAction() |
||
62 | |||
63 | /** |
||
64 | * Runs 'Rollback' command |
||
65 | * |
||
66 | * @return void |
||
67 | */ |
||
68 | public function rollbackAction() |
||
73 | |||
74 | /** |
||
75 | * Runs 'Status' command |
||
76 | * |
||
77 | * @return void |
||
78 | */ |
||
79 | public function statusAction() |
||
84 | |||
85 | /** |
||
86 | * Gets Phinx service |
||
87 | * |
||
88 | * @return ZfPhinxService |
||
89 | */ |
||
90 | private function getPhinxService() |
||
94 | |||
95 | /** |
||
96 | * Get console command arguments |
||
97 | * |
||
98 | * @return array |
||
99 | */ |
||
100 | private function getArgvArray() |
||
104 | |||
105 | /** |
||
106 | * Writes copyright & version into console |
||
107 | * |
||
108 | * @return void |
||
109 | */ |
||
110 | private function writeModuleInfo() |
||
117 | } |
||
118 |