public function handle(Event $event) { $io = new SymfonyStyle(new StringInput(''), $this->output); $io->section('Payroll sending report'); $io->table(array('Month', $event->getMonth()), array(array('Employees', $event->getProgress()->getTotal()), array('Sent emails', $event->getProgress()->getSent()), array('Payrolls not found', $event->getProgress()->getNotFound()), array('Emails Failed', $event->getProgress()->getFailed()))); }
protected function prepareTemplateParameters(Event $event) { return array('month' => $event->getMonth(), 'sent' => $event->getProgress()->getCurrent(), 'total' => $event->getProgress()->getTotal(), 'employees' => $event->getProgress()->getTotal(), 'ok' => $event->getProgress()->getSent(), 'not_found' => $event->getProgress()->getNotFound(), 'failed' => $event->getProgress()->getFailed()); }