@@ -80,10 +80,6 @@ protected function configure()
8080 'config-file ' ,
8181 InputArgument::REQUIRED ,
8282 $ this ->language ->lang ('CLI_CONFIG_FILE ' ))
83- ->addArgument (
84- 'install-extensions ' ,
85- InputArgument::OPTIONAL ,
86- $ this ->language ->lang ('CLI_INSTALL_EXTENSIONS ' ))
8783 ->setDescription ($ this ->language ->lang ('CLI_INSTALL_BOARD ' ))
8884 ;
8985 }
@@ -151,11 +147,11 @@ protected function execute(InputInterface $input, OutputInterface $output)
151147 }
152148
153149 $ this ->register_configuration ($ iohandler , $ config );
154- $ this ->register_install_extensions ($ iohandler , $ input );
155150
156151 try
157152 {
158153 $ this ->installer ->run ();
154+ return 0 ;
159155 }
160156 catch (installer_exception $ e )
161157 {
@@ -208,18 +204,7 @@ private function register_configuration(cli_iohandler $iohandler, $config)
208204 $ iohandler ->set_input ('server_port ' , $ config ['server ' ]['server_port ' ]);
209205 $ iohandler ->set_input ('script_path ' , $ config ['server ' ]['script_path ' ]);
210206 $ iohandler ->set_input ('submit_server ' , 'submit ' );
211- }
212207
213- /**
214- * Register extensions to install during installation
215- *
216- * @param cli_iohandler $iohandler
217- * @param InputInterface $input
218- */
219- private function register_install_extensions (cli_iohandler $ iohandler , InputInterface $ input )
220- {
221- $ install_extensions = $ input ->getArgument ('install-extensions ' );
222- $ install_extensions = !empty ($ install_extensions ) ? explode (', ' , $ install_extensions ) : array ();
223- $ iohandler ->set_input ('install-extensions ' , $ install_extensions );
208+ $ iohandler ->set_input ('install-extensions ' , $ config ['extensions ' ]);
224209 }
225210}
0 commit comments