protected function runBuilders($builders)
    {
        $this->writeTitle('Executing builders');

        $builderContext = new BuilderContext($this->input, $this->output, $this->getApplication());

        foreach ($builders as $builder) {
            $this->output->getFormatter()->setIndentLevel(0);

            if ($builder instanceof ContainerAwareInterface) {
                $builder->setContainer($this->container);
            }

            $builder->setContext($builderContext);

            $this->output->writeln(sprintf(
                '<info>Target: </info>%s', $builder->getName()
            ));
            $this->output->writeln('');

            $this->output->getFormatter()->setIndentLevel(1);
            $builder->build();
        }
    }
protected function runBuilders($builders)
    {
        $this->writeTitle('Executing builders');

        $builderContext = new BuilderContext($this->input, $this->output, $this->getApplication());

        foreach ($builders as $builder) {
            $this->output->getFormatter()->setIndentLevel(0);

            if ($builder instanceof ContainerAwareInterface) {
                $builder->setContainer($this->container);
            }

            $builder->setContext($builderContext);

            $this->output->writeln(sprintf(
                '<info>Target: </info>%s', $builder->getName()
            ));
            $this->output->writeln('');

            $this->output->getFormatter()->setIndentLevel(1);
            $builder->build();
        }
    }
protected function runBuilders ( $ builders ) { $ this -> writeTitle ( 'Executing builders' ) ; $ builderContext = new BuilderContext ( $ this -> input , $ this -> output , $ this -> getApplication ( ) ) ; foreach ( $ builders as $ builder ) { $ this -> output -> getFormatter ( ) -> setIndentLevel ( 0 ) ; if ( $ builder instanceof ContainerAwareInterface ) { $ builder -> setContainer ( $ this -> container ) ; } $ builder -> setContext ( $ builderContext ) ; $ this -> output -> writeln ( sprintf ( '<info>Target: </info>%s' , $ builder -> getName ( ) ) ) ; $ this -> output -> writeln ( '' ) ; $ this -> output -> getFormatter ( ) -> setIndentLevel ( 1 ) ; $ builder -> build ( ) ; } }
Execute the builders

@param BuilderInterface[] $builders
Execute the builders