Command/ListProvidersCommand.php
protected function execute(InputInterface $input, OutputInterface $output)
    {
        $output->writeln('Registered version providers');
        $providers = $this->manager->getProviders();

        $table = new Table($output);
        $table->setHeaders(array('Alias', 'Class', 'Priority', 'Supported'))
            ->setStyle('borderless');

        foreach ($providers as $alias => $providerEntry) {
            /** @var $provider ProviderInterface */
            $provider = $providerEntry['provider'];
            $supported = $provider->isSupported() ? 'Yes' : 'No';
            $table->addRow(array($alias, get_class($provider), $providerEntry['priority'], $supported));
        }

        $table->render();
    }
protected function execute(InputInterface $input, OutputInterface $output)
    {
        $output->writeln('Registered version providers');
        $providers = $this->manager->getProviders();

        $table = new Table($output);
        $table->setHeaders(array('Alias', 'Class', 'Priority', 'Supported'))
            ->setStyle('borderless');

        foreach ($providers as $alias => $providerEntry) {
            /** @var $provider ProviderInterface */
            $provider = $providerEntry['provider'];
            $supported = $provider->isSupported() ? 'Yes' : 'No';
            $table->addRow(array($alias, get_class($provider), $providerEntry['priority'], $supported));
        }

        $table->render();
    }
protected function execute ( InputInterface $ input , OutputInterface $ output ) { $ output -> writeln ( 'Registered version providers' ) ; $ providers = $ this -> manager -> getProviders ( ) ; $ table = new Table ( $ output ) ; $ table -> setHeaders ( array ( 'Alias' , 'Class' , 'Priority' , 'Supported' ) ) -> setStyle ( 'borderless' ) ; foreach ( $ providers as $ alias => $ providerEntry ) { /** @var $provider ProviderInterface */ $ provider = $ providerEntry [ 'provider' ] ; $ supported = $ provider -> isSupported ( ) ? 'Yes' : 'No' ; $ table -> addRow ( array ( $ alias , get_class ( $ provider ) , $ providerEntry [ 'priority' ] , $ supported ) ) ; } $ table -> render ( ) ; }
List all registered version providers
List all registered version providers