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 or move it to /bin/bluzman |
||
81 | */ |
||
82 | 14 | protected function registerCommands() |
|
110 | |||
111 | /** |
||
112 | * Returns the path to the directory with bluzman application |
||
113 | * |
||
114 | * @return string |
||
115 | */ |
||
116 | public function getWorkingPath() |
||
120 | |||
121 | /** |
||
122 | * Get Module path |
||
123 | * |
||
124 | * @param string $name |
||
125 | * @return string |
||
126 | */ |
||
127 | 3 | public function getModulePath($name) |
|
134 | |||
135 | /** |
||
136 | * Get Model path |
||
137 | * |
||
138 | * @param string $name |
||
139 | * @return string |
||
140 | */ |
||
141 | 4 | public function getModelPath($name) |
|
148 | |||
149 | /** |
||
150 | * @param string $name |
||
151 | * @return bool |
||
152 | */ |
||
153 | 2 | public function isModuleExists($name) |
|
157 | |||
158 | /** |
||
159 | * @param string $name |
||
160 | * @return bool |
||
161 | */ |
||
162 | 3 | public function isModelExists($name) |
|
166 | } |
||
167 |