/** * @return void */ public function indexAction() { $calls = array(); $calls[] = array('Content', 'list'); $contents = $this->contentRepository->findAll(); foreach ($contents as $content) { $uid = $content->getUid(); $calls[] = array('Content', 'show', array('content' => (string)$uid)); } $this->getQueueService()->set($calls); $this->forward('process'); }
/** * @return void */ public function listAction() { $contents = $this->contentRepository->findAll(); $value = $this->getStructure($contents); $this->process($value); }