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() |
|
108 | |||
109 | /** |
||
110 | * Returns the path to the directory with bluzman application |
||
111 | * |
||
112 | * @return string |
||
113 | */ |
||
114 | public function getWorkingPath() |
||
118 | |||
119 | /** |
||
120 | * Get Module path |
||
121 | * |
||
122 | * @param string $name |
||
123 | * @return string |
||
124 | */ |
||
125 | 3 | public function getModulePath($name) |
|
132 | |||
133 | /** |
||
134 | * Get Model path |
||
135 | * |
||
136 | * @param string $name |
||
137 | * @return string |
||
138 | */ |
||
139 | 4 | public function getModelPath($name) |
|
146 | |||
147 | /** |
||
148 | * @param string $name |
||
149 | * @return bool |
||
150 | */ |
||
151 | 2 | public function isModuleExists($name) |
|
155 | |||
156 | /** |
||
157 | * @param string $name |
||
158 | * @return bool |
||
159 | */ |
||
160 | 3 | public function isModelExists($name) |
|
164 | } |
||
165 |