@@ -22,6 +22,9 @@ discard block |
||
| 22 | 22 | } |
| 23 | 23 | } |
| 24 | 24 | |
| 25 | + /** |
|
| 26 | + * @param string $path |
|
| 27 | + */ |
|
| 25 | 28 | public static function installComposer($path) { |
| 26 | 29 | if (file_exists($path . '/composer/bin/composer')) { |
| 27 | 30 | return true; |
@@ -74,6 +77,10 @@ discard block |
||
| 74 | 77 | self::command('install', false, $path); |
| 75 | 78 | } |
| 76 | 79 | |
| 80 | + /** |
|
| 81 | + * @param string $command |
|
| 82 | + * @param string $path |
|
| 83 | + */ |
|
| 77 | 84 | public static function command($command, $needOutput = true, $path = null) { |
| 78 | 85 | ini_set('memory_limit', '2000M'); |
| 79 | 86 | include_once getenv('COMPOSER_HOME') . '/composer/vendor/autoload.php'; |