rezzza / jobflow

Makes batch jobs creation Simpler, Easier, Faster.
MIT License
29 stars 4 forks source link

ContextOptions cannot be overrided. #23

Open stephpy opened 10 years ago

stephpy commented 10 years ago
public function setInitOptions(OptionsResolverInterface $resolver)
    {
        $resolver->setDefaults([
            'context' => [
                'limit' => 1000
            ]
        ]);
    }

And

$executionContext->getContextOption('limit'); // return 50.
tyx commented 10 years ago

In the example: https://github.com/rezzza/jobflow/blob/master/examples/placetostreet-rmq.php

The limit 1 works fine.