Skip to content

Commit

Permalink
BAP-13894: Cron scheduled workflow transitions are not working
Browse files Browse the repository at this point in the history
- CR Fixes
  • Loading branch information
inri13666 committed Feb 17, 2017
1 parent fdb1ce0 commit 65d8b66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Oro/Bundle/CronBundle/Command/CronCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,23 +81,23 @@ protected function execute(InputInterface $input, OutputInterface $output)
}

/**
* Convert command arguments to options. It needed for correctly pass this arguments into ArrayInput:
* new ArrayInput(['name' => 'foo', '--bar' => 'foobar']);
*
* @param array $commandOptions
* @return array
*/
protected function resolveOptions(array $commandOptions)
{
$options = [];

foreach ($commandOptions as $key => $option) {
$params = explode('=', $option, 2);

if (is_array($params) && count($params) === 2) {
$options[$params[0]] = $params[1];
} else {
$options[$key] = $option;
}
}

return $options;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

use Doctrine\Common\Persistence\ObjectRepository;

use Oro\Bundle\CronBundle\Command\CronCommandInterface;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;

use Oro\Bundle\CronBundle\Command\CronCommandInterface;
use Oro\Bundle\WorkflowBundle\Async\TransitionTriggerMessage;
use Oro\Bundle\WorkflowBundle\Async\TransitionTriggerProcessor;
use Oro\Bundle\WorkflowBundle\Entity\TransitionCronTrigger;
Expand Down

0 comments on commit 65d8b66

Please sign in to comment.