private function getCommandProcessBuilder()
    {
        $pb = new ProcessBuilder();

        // PHP wraps the process in "sh -c" by default, but we need to control
        // the process directly.
        if (!defined('PHP_WINDOWS_VERSION_MAJOR')) {
            $pb->add('exec');
        }

        $pb
            ->add('php')
            ->add($this->getContainer()->getParameter('kernel.root_dir').'/console')
            ->add('--env='.$this->env)
        ;

        return $pb;
    }
private function getCommandProcessBuilder()
    {
        $pb = new ProcessBuilder();

        // PHP wraps the process in "sh -c" by default, but we need to control
        // the process directly.
        if (!defined('PHP_WINDOWS_VERSION_MAJOR')) {
            $pb->add('exec');
        }

        $pb
            ->add('php')
            ->add($this->getContainer()->getParameter('kernel.root_dir').'/console')
            ->add('--env='.$this->env)
        ;

        return $pb;
    }
private function getCommandProcessBuilder ( ) { $ pb = new ProcessBuilder ( ) ; // PHP wraps the process in "sh -c" by default, but we need to control // the process directly. if ( ! defined ( 'PHP_WINDOWS_VERSION_MAJOR' ) ) { $ pb -> add ( 'exec' ) ; } $ pb -> add ( 'php' ) -> add ( $ this -> getContainer ( ) -> getParameter ( 'kernel.root_dir' ) . '/console' ) -> add ( '--env=' . $ this -> env ) ; return $ pb ; }
Get the process builder.

@return \Symfony\Component\Process\ProcessBuilder
Get the process builder .