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

        /** @var SerializerManager $serializerManager */
        $serializerManager = $this->getContainer()->get(RegisterSerializerPass::MANAGER_SERVICE_ID);

        /** @var SerializerInterface $serializer */
        foreach ($serializerManager->getSerializers() as $serializer) {
            $table->addRow([
                $serializer->getId(),
                $serializer->getName(),
                $serializer->getExtension(),
                $serializer->getMimeType()
            ]);
        }

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

        /** @var SerializerManager $serializerManager */
        $serializerManager = $this->getContainer()->get(RegisterSerializerPass::MANAGER_SERVICE_ID);

        /** @var SerializerInterface $serializer */
        foreach ($serializerManager->getSerializers() as $serializer) {
            $table->addRow([
                $serializer->getId(),
                $serializer->getName(),
                $serializer->getExtension(),
                $serializer->getMimeType()
            ]);
        }

        $table
            ->setHeaders([
                'Id',
                'Name',
                'Extension',
                'MIME type'
            ])
            ->render()
        ;
    }
protected function listSerializer ( OutputInterface $ output ) { $ table = new Table ( $ output ) ; /** @var SerializerManager $serializerManager */ $ serializerManager = $ this -> getContainer ( ) -> get ( RegisterSerializerPass :: MANAGER_SERVICE_ID ) ; /** @var SerializerInterface $serializer */ foreach ( $ serializerManager -> getSerializers ( ) as $ serializer ) { $ table -> addRow ( [ $ serializer -> getId ( ) , $ serializer -> getName ( ) , $ serializer -> getExtension ( ) , $ serializer -> getMimeType ( ) ] ) ; } $ table -> setHeaders ( [ 'Id' , 'Name' , 'Extension' , 'MIME type' ] ) -> render ( ) ; }
Output available serializers

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