This topic contains 1 reply, has 2 voices, and was last updated by Jaimy 9 years, 1 month ago.
- Topic
Hey!
I’m trying to execute a self-created cron command following the OroBook instructions, but it doesnt work.
When I execute oro:cron, only the built-in commands are executed. Am I missing something?This is my code.
(Btw.: ‘*/1 * * * *’ means that it’s executed every minute, right?)123456789101112131415161718192021222324252627282930<?php// src/Acme/DemoBundle/Command/DemoCommand.phpnamespace Acme\DemoBundle\Command;use Oro\Bundle\CronBundle\Command\CronCommandInterface;use Symfony\Component\Console\Input\InputInterface;use Symfony\Component\Console\Output\OutputInterface;class DemoCommand implements CronCommandInterface{public function getDefaultDefinition(){return '*/1 * * * *';}protected function configure(){$this->setName('oro:cron:demo');// ...}protected function execute(InputInterface $input, OutputInterface $output){// ...// do something...}}
The forum ‘OroCRM – How do I? Questions’ is closed to new topics and replies.