protected function buildExec(JobConfig $config, $options) { if (null !== $this->parent) { $this->parent->buildExec($config, $options); } $this->innerType->buildExec($config, $options); }
public function resolveExecOptions(ExecutionContext $execution) { $options = $this->execOptions; // We inject execution here to be able to use it then in JobType options. $options['execution'] = $execution; $options = $this->resolved->execJob($this, $options); $this->setResolvedExecOptions($options); }
public function test_it_should_set_exec_options_from_type_and_parent() { $this->given($resolved = new TestedClass($this->jobType, array(), $this->resolvedParent))->then($resolver = $resolved->getExecOptionsResolver(), $options = $resolver->resolve(array('bb' => 'gogo')))->array($options)->isEqualTo(array('aa' => 'jeanjean', 'bb' => 'gogo', 'cc' => 'dodo')); }