Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable add own jobcontrol type mapping #3

Open
Koc opened this issue Oct 21, 2011 · 0 comments
Open

Unable add own jobcontrol type mapping #3

Koc opened this issue Oct 21, 2011 · 0 comments

Comments

@Koc
Copy link

Koc commented Oct 21, 2011

I've tryed add my own job control

nine_thousand_jobqueue:
    job:
        class:  NineThousand\Jobqueue\Job\StandardJob
    control:
        class:  NineThousand\Jobqueue\Service\JobqueueControl
    adapter:
        class:  NineThousand\Jobqueue\Vendor\Doctrine\Adapter\Queue\DoctrineQueueAdapter
        options:
            cron_class:                     Cron\CronExpression
            job_entity_class:       NineThousand\Bundle\NineThousandJobqueueBundle\Entity\Job
            job_adapter_class:      NineThousand\Bundle\NineThousandJobqueueBundle\Vendor\Doctrine\Adapter\Job\Symfony2DoctrineJobAdapter
            history_entity_class:   NineThousand\Bundle\NineThousandJobqueueBundle\Entity\History
            history_adapter_class:  NineThousand\Jobqueue\Vendor\Doctrine\Adapter\History\DoctrineHistoryAdapter
            log_adapter_class:      NineThousand\Jobqueue\Vendor\Doctrine\Adapter\Log\MonologAdapter
            jobcontrol:
                type_mapping:
                    SymfonyConsoleJobControl:   NineThousand\Jobqueue\Vendor\Symfony2\Adapter\Job\Control\Symfony2ConsoleJobControl
                    OloloConsoleJobControl: Ololo\Bundle\ProjectBundle\JobQueue\ConsoleJobControl

got exception

  [Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]

  Unrecognized options "OloloConsoleJobControl" under "nine_thousand_jobqueu
e.adapter.options.jobcontrol.type_mapping"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant