classes/phing/tasks/ext/ComposerTask.php
public function getComposer()
    {
        $composerFile = new SplFileInfo($this->composer);
        if (false === $composerFile->isFile()) {
            $message = sprintf('Composer binary not found at "%s"', $composerFile);
            $this->log($message, Project::MSG_WARN);
            $composerLocation = FileSystem::getFileSystem()->which('composer');
            if (!empty($composerLocation)) {
                $message = sprintf('Composer binary found at "%s", updating location', $composerLocation[0]);
                $this->log($message, Project::MSG_INFO);
                $this->setComposer($composerLocation);
            }
        }
        return $this->composer;
    }
public function getComposer()
    {
        $composerFile = new SplFileInfo($this->composer);
        if (false === $composerFile->isFile()) {
            $message = sprintf('Composer binary not found at "%s"', $composerFile);
            $this->log($message, Project::MSG_WARN);
            $composerLocation = FileSystem::getFileSystem()->which('composer');
            if (!empty($composerLocation)) {
                $message = sprintf('Composer binary found at "%s", updating location', $composerLocation[0]);
                $this->log($message, Project::MSG_INFO);
                $this->setComposer($composerLocation);
            }
        }
        return $this->composer;
    }
public function getComposer ( ) { $ composerFile = new SplFileInfo ( $ this -> composer ) ; if ( false === $ composerFile -> isFile ( ) ) { $ message = sprintf ( 'Composer binary not found at "%s"' , $ composerFile ) ; $ this -> log ( $ message , Project :: MSG_WARN ) ; $ composerLocation = FileSystem :: getFileSystem ( ) -> which ( 'composer' ) ; if ( ! empty ( $ composerLocation ) ) { $ message = sprintf ( 'Composer binary found at "%s", updating location' , $ composerLocation [ 0 ] ) ; $ this -> log ( $ message , Project :: MSG_INFO ) ; $ this -> setComposer ( $ composerLocation ) ; } } return $ this -> composer ; }
Returns the path to Composer application.

If the filepath is non existent, try to find it on the system.

@return string
@throws IOException
Returns the path to Composer application .