| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 24 | { |
||
| 25 | /* @var \Coderbyheart\MailChimpBundle\MailChimp\Api $mailchimp */ |
||
| 26 | $mailchimp = $this->getContainer()->get('mailchimp'); |
||
| 27 | $output->writeln('Available lists in our mailchimp account:'); |
||
| 28 | foreach ($mailchimp->listsList()->data as $list) { |
||
| 29 | $output->writeln(sprintf('%s (%s)', $list->name, $list->id)); |
||
| 30 | } |
||
| 31 | } |
||
| 32 | } |
||
| 33 |