You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
namespace App\Command;
use Pimcore\Console\AbstractCommand;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
#[AsCommand(
name : 'app:export-command'
, description : 'Export command'
)]
class ExportCommand extends AbstractCommand
{
protected function execute(InputInterface $input, OutputInterface $output): int
{
$output->writeln("Start command...");
...
return AbstractCommand::SUCCESS;
}
}
Actual Behavior
When I run the export command from the command line:
Thanks a lot for reporting the issue. We did not consider the issue as "Pimcore:Priority", "Pimcore:ToDo" or "Pimcore:Backlog", so we're not going to work on that anytime soon. Please create a pull request to fix the issue if this is a bug report. We'll then review it as quickly as possible. If you're interested in contributing a feature, please contact us first here before creating a pull request. We'll then decide whether we'd accept it or not. Thanks for your understanding.
Pimcore version
v11.2.2
Steps to reproduce
In Controller use:
In ExportCommand use:
Actual Behavior
When I run the export command from the command line:
/usr/bin/php /project/folder/bin/console app:export-command
It shows me on the screen: "Start command...".
When I run the export command with the controller, it creates register.log file but does not write anything to it.
Expected Behavior
Instructions $output->writeln should write to the register.log file
The text was updated successfully, but these errors were encountered: