src/Scaffolder/Support/Composer.php
protected function find()
    {
        if (!File::exists($this->workingPath . '/composer.phar'))
        {
            return 'composer';
        }

        $binary = ProcessUtils::escapeArgument((new PhpExecutableFinder)->find(false));

        if (defined('HHVM_VERSION'))
        {
            $binary .= ' --php';
        }

        return "{$binary} composer.phar";
    }
protected function find()
    {
        if (!File::exists($this->workingPath . '/composer.phar'))
        {
            return 'composer';
        }

        $binary = ProcessUtils::escapeArgument((new PhpExecutableFinder)->find(false));

        if (defined('HHVM_VERSION'))
        {
            $binary .= ' --php';
        }

        return "{$binary} composer.phar";
    }
protected function find ( ) { if ( ! File :: exists ( $ this -> workingPath . '/composer.phar' ) ) { return 'composer' ; } $ binary = ProcessUtils :: escapeArgument ( ( new PhpExecutableFinder ) -> find ( false ) ) ; if ( defined ( 'HHVM_VERSION' ) ) { $ binary .= ' --php' ; } return "{$binary} composer.phar" ; }
Find composer.
@return string
Find composer .