1 | <?php |
||
23 | class Application extends Console\Application |
||
24 | { |
||
25 | /** |
||
26 | * @param string $name |
||
27 | * @param string $version |
||
28 | */ |
||
29 | 14 | public function __construct($name = 'UNKNOWN', $version = 'UNKNOWN') |
|
35 | |||
36 | /** |
||
37 | * init |
||
38 | * |
||
39 | * @return void |
||
40 | */ |
||
41 | public function init() |
||
51 | |||
52 | /** |
||
53 | * Removed some commands from default input definition. |
||
54 | * |
||
55 | * @return InputDefinition An InputDefinition instance |
||
56 | */ |
||
57 | 14 | protected function getDefaultInputDefinition() |
|
76 | |||
77 | /** |
||
78 | * Register Bluzman commands |
||
79 | * |
||
80 | * @todo Find a way to do this automatically |
||
81 | */ |
||
82 | 14 | protected function registerCommands() |
|
109 | |||
110 | /** |
||
111 | * Returns the path to the directory with bluzman application |
||
112 | * |
||
113 | * @return string |
||
114 | */ |
||
115 | public function getWorkingPath() |
||
119 | |||
120 | /** |
||
121 | * Get Module path |
||
122 | * |
||
123 | * @param string $name |
||
124 | * @return string |
||
125 | */ |
||
126 | 3 | public function getModulePath($name) |
|
133 | |||
134 | /** |
||
135 | * Get Model path |
||
136 | * |
||
137 | * @param string $name |
||
138 | * @return string |
||
139 | */ |
||
140 | 4 | public function getModelPath($name) |
|
147 | |||
148 | /** |
||
149 | * @param string $name |
||
150 | * @return bool |
||
151 | */ |
||
152 | 2 | public function isModuleExists($name) |
|
156 | |||
157 | /** |
||
158 | * @param string $name |
||
159 | * @return bool |
||
160 | */ |
||
161 | 3 | public function isModelExists($name) |
|
165 | } |
||
166 |