RSS Feed/News --no-interaction is not passed to finalize sub command

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
24,821
Points
823

Reputation:

If an import is started via CLI php cmd.php xf:import --finalize --no-interaction, option --no-interaction is not passed to the finalize sub command:

PHP:

Code:
$command = $this->getApplication()->find('xf:import-finalize');
$childInput = new ArrayInput(['command' => 'xf:import-finalize']);
$command->run($childInput, $output);

This causes the question "Would you like to view any import notes and complete the import? (y/n)" to be asked interactively which generates an exception...

Read more

Continue reading...
 
Status
Not open for further replies.
Top