Skip to content

Commit ca75f9c

Browse files
committed
Merge branch 'mrrobot47-remove/composer-warning' into develop
2 parents e930bab + a7dd54c commit ca75f9c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/Admin_Tools_Command.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -244,12 +244,10 @@ private function move_config_file( $template_file, $config_file ) {
244244
*/
245245
private function composer_install( $tool_path ) {
246246

247-
putenv( 'COMPOSER_HOME=' . EE_VENDOR_DIR . '/bin/composer' );
248247
chdir( $tool_path );
249-
$input = new ArrayInput( array( 'command' => 'update' ) );
250-
$application = new Application();
251-
$application->setAutoExit( false );
252-
$application->run( $input );
248+
EE::log( 'Installing dependencies. This may take a little while.' );
249+
$img_versions = \EE\Utils\get_image_versions();
250+
EE::exec( sprintf( 'docker run --rm -it -e USER_ID=0 -e GROUP_ID=0 --user=root -v $PWD:/var/www/htdocs easyengine/php:%s composer update', $img_versions['easyengine/php'] ) );
253251
}
254252

255253
/**

0 commit comments

Comments
 (0)