src/Command/CloneSiteCommand.php
private function listAllSites(OutputInterface $output)
    {
        $output->writeln(sprintf(' % 5s - % -30s - %s', 'ID', 'Name', 'Url'));

        $sites = $this->getSiteManager()->findAll();

        foreach ($sites as $site) {
            $output->writeln(sprintf(' % 5s - % -30s - %s', $site->getId(), $site->getName(), $site->getUrl()));
        }
    }
private function listAllSites(OutputInterface $output)
    {
        $output->writeln(sprintf(' % 5s - % -30s - %s', 'ID', 'Name', 'Url'));

        $sites = $this->getSiteManager()->findAll();

        foreach ($sites as $site) {
            $output->writeln(sprintf(' % 5s - % -30s - %s', $site->getId(), $site->getName(), $site->getUrl()));
        }
    }
private function listAllSites ( OutputInterface $ output ) { $ output -> writeln ( sprintf ( ' % 5s - % -30s - %s' , 'ID' , 'Name' , 'Url' ) ) ; $ sites = $ this -> getSiteManager ( ) -> findAll ( ) ; foreach ( $ sites as $ site ) { $ output -> writeln ( sprintf ( ' % 5s - % -30s - %s' , $ site -> getId ( ) , $ site -> getName ( ) , $ site -> getUrl ( ) ) ) ; } }
Prints a list of all available sites.

@param OutputInterface $output
Prints a list of all available sites .