Skip to content

Commit 4367aa8

Browse files
authored
Merge branch 'develop' into add-auth-hook
2 parents 60885f2 + ca75f9c commit 4367aa8

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/Admin_Tools_Command.php

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

249-
putenv( 'COMPOSER_HOME=' . EE_VENDOR_DIR . '/bin/composer' );
250249
chdir( $tool_path );
251-
$input = new ArrayInput( array( 'command' => 'update' ) );
252-
$application = new Application();
253-
$application->setAutoExit( false );
254-
$application->run( $input );
250+
EE::log( 'Installing dependencies. This may take a little while.' );
251+
$img_versions = \EE\Utils\get_image_versions();
252+
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'] ) );
255253
}
256254

257255
/**

0 commit comments

Comments
 (0)