classes/phing/tasks/ext/SymfonyConsole/SymfonyConsoleTask.php
public function main()
    {
        $cmd = $this->getCmdString();

        $this->silent ?: $this->log("executing $cmd");
        $return = null;
        $output = [];
        exec($cmd, $output, $return);

        $lines = implode("\r\n", $output);

        $this->silent ?: $this->log($lines, Project::MSG_INFO);

        if ($this->propertyName != null) {
            $this->project->setProperty($this->propertyName, $lines);
        }

        if ($return != 0 && $this->checkreturn) {
            $this->log('Task exited with code: ' . $return, Project::MSG_ERR);
            throw new BuildException("SymfonyConsole execution failed");
        }
    }
public function main()
    {
        $cmd = $this->getCmdString();

        $this->silent ?: $this->log("executing $cmd");
        $return = null;
        $output = [];
        exec($cmd, $output, $return);

        $lines = implode("\r\n", $output);

        $this->silent ?: $this->log($lines, Project::MSG_INFO);

        if ($this->propertyName != null) {
            $this->project->setProperty($this->propertyName, $lines);
        }

        if ($return != 0 && $this->checkreturn) {
            $this->log('Task exited with code: ' . $return, Project::MSG_ERR);
            throw new BuildException("SymfonyConsole execution failed");
        }
    }
public function main ( ) { $ cmd = $ this -> getCmdString ( ) ; $ this -> silent ? : $ this -> log ( "executing $cmd" ) ; $ return = null ; $ output = [ ] ; exec ( $ cmd , $ output , $ return ) ; $ lines = implode ( "\r\n" , $ output ) ; $ this -> silent ? : $ this -> log ( $ lines , Project :: MSG_INFO ) ; if ( $ this -> propertyName != null ) { $ this -> project -> setProperty ( $ this -> propertyName , $ lines ) ; } if ( $ return != 0 && $ this -> checkreturn ) { $ this -> log ( 'Task exited with code: ' . $ return , Project :: MSG_ERR ) ; throw new BuildException ( "SymfonyConsole execution failed" ) ; } }
executes the synfony console application
executes the synfony console application