protected function listArchiver(OutputInterface $output)
    {
        $table = new Table($output);

        /** @var ArchiverManager $archiverManager */
        $archiverManager = $this->getContainer()->get(RegisterArchiverPass::MANAGER_SERVICE_ID);

        /** @var ArchiverInterface $archiver */
        foreach ($archiverManager->getArchivers(true) as $archiver) {
            $table->addRow([
                $archiver->getId(),
                $archiver->getName(),
                $archiver->getExtension(),
                $archiver->getMimeType()
            ]);
        }

        $table
            ->setHeaders([
                'Id',
                'Name',
                'Extension',
                'MIME type'
            ])
            ->render()
        ;
    }
protected function listArchiver(OutputInterface $output)
    {
        $table = new Table($output);

        /** @var ArchiverManager $archiverManager */
        $archiverManager = $this->getContainer()->get(RegisterArchiverPass::MANAGER_SERVICE_ID);

        /** @var ArchiverInterface $archiver */
        foreach ($archiverManager->getArchivers(true) as $archiver) {
            $table->addRow([
                $archiver->getId(),
                $archiver->getName(),
                $archiver->getExtension(),
                $archiver->getMimeType()
            ]);
        }

        $table
            ->setHeaders([
                'Id',
                'Name',
                'Extension',
                'MIME type'
            ])
            ->render()
        ;
    }
protected function listArchiver ( OutputInterface $ output ) { $ table = new Table ( $ output ) ; /** @var ArchiverManager $archiverManager */ $ archiverManager = $ this -> getContainer ( ) -> get ( RegisterArchiverPass :: MANAGER_SERVICE_ID ) ; /** @var ArchiverInterface $archiver */ foreach ( $ archiverManager -> getArchivers ( true ) as $ archiver ) { $ table -> addRow ( [ $ archiver -> getId ( ) , $ archiver -> getName ( ) , $ archiver -> getExtension ( ) , $ archiver -> getMimeType ( ) ] ) ; } $ table -> setHeaders ( [ 'Id' , 'Name' , 'Extension' , 'MIME type' ] ) -> render ( ) ; }
Output available archivers

@param \Symfony\Component\Console\Output\OutputInterface $output An output interface
Output available archivers