public function dir(OutputInterface $output, $response)
    {
        if (empty($response)) {
            $output->writeln('<info>No plugin installed</info>');
        } else {
            $headers = array('Plugin Class', 'Events Subscribed');
            $rows    = array();

            foreach ($response as $pluginClass => $events) {
                $first  = true;
                foreach ($events as $event) {
                    if (!$first) {
                        $rows[] = array('', $event);
                    } else {
                        $rows[] = array($pluginClass, $event);
                        $first  = false;
                    }
                }
            }
            $this->tableHelper($output, $headers, $rows);
        }
    }
public function dir(OutputInterface $output, $response)
    {
        if (empty($response)) {
            $output->writeln('<info>No plugin installed</info>');
        } else {
            $headers = array('Plugin Class', 'Events Subscribed');
            $rows    = array();

            foreach ($response as $pluginClass => $events) {
                $first  = true;
                foreach ($events as $event) {
                    if (!$first) {
                        $rows[] = array('', $event);
                    } else {
                        $rows[] = array($pluginClass, $event);
                        $first  = false;
                    }
                }
            }
            $this->tableHelper($output, $headers, $rows);
        }
    }
public function dir ( OutputInterface $ output , $ response ) { if ( empty ( $ response ) ) { $ output -> writeln ( '<info>No plugin installed</info>' ) ; } else { $ headers = array ( 'Plugin Class' , 'Events Subscribed' ) ; $ rows = array ( ) ; foreach ( $ response as $ pluginClass => $ events ) { $ first = true ; foreach ( $ events as $ event ) { if ( ! $ first ) { $ rows [ ] = array ( '' , $ event ) ; } else { $ rows [ ] = array ( $ pluginClass , $ event ) ; $ first = false ; } } } $ this -> tableHelper ( $ output , $ headers , $ rows ) ; } }
Plugin list results

@param OutputInterface $output   Console Output concrete instance
@param array           $response Available plugins list
Plugin list results