Jarves\Command\EntryPointsCommand::execute PHP Method

execute() protected method

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $jarves = $this->getJarves();
        foreach ($jarves->getConfigs() as $bundleConfig) {
            $output->writeln(sprintf(PHP_EOL . '<info>Bundle @%s:</info>', $bundleConfig->getBundleName()));
            $entryPoints = $bundleConfig->getAllEntryPoints();
            if (!$entryPoints) {
                $output->writeln('  - no entry points.');
            } else {
                $table = new Table($output);
                $table->setHeaders(['fullPath', 'type', 'templateUrl', 'In Menu?']);
                foreach ($entryPoints as $entryPoint) {
                    $row = [$entryPoint->getFullPath(), $entryPoint->getType(), $entryPoint->getTemplateUrl(), $entryPoint->isLink() ? 'Yes' : 'No'];
                    $table->addRow($row);
                }
                $table->render();
            }
        }
    }
EntryPointsCommand