src/phpDocumentor/Transformer/Command/Project/TransformCommand.php
protected function getProgressBar(InputInterface $input)
    {
        $progress = parent::getProgressBar($input);
        if (!$progress) {
            return null;
        }

        /** @var Dispatcher $eventDispatcher */
        $eventDispatcher = $this->getService('event_dispatcher');
        $eventDispatcher->addListener(
            'transformer.transformation.post',
            function () use ($progress) {
                $progress->advance();
            }
        );

        return $progress;
    }
protected function getProgressBar(InputInterface $input)
    {
        $progress = parent::getProgressBar($input);
        if (!$progress) {
            return null;
        }

        /** @var Dispatcher $eventDispatcher */
        $eventDispatcher = $this->getService('event_dispatcher');
        $eventDispatcher->addListener(
            'transformer.transformation.post',
            function () use ($progress) {
                $progress->advance();
            }
        );

        return $progress;
    }
protected function getProgressBar ( InputInterface $ input ) { $ progress = parent :: getProgressBar ( $ input ) ; if ( ! $ progress ) { return null ; } /** @var Dispatcher $eventDispatcher */ $ eventDispatcher = $ this -> getService ( 'event_dispatcher' ) ; $ eventDispatcher -> addListener ( 'transformer.transformation.post' , function ( ) use ( $ progress ) { $ progress -> advance ( ) ; } ) ; return $ progress ; }
Adds the transformer.transformation.post event to advance the progressbar.

@param InputInterface $input

@return HelperInterface|null
Adds the transformer . transformation . post event to advance the progressbar .