public function getFile(Repo $repo)
    {
        $file = tempnam(sys_get_temp_dir(), 'composer');
        $content = file_get_contents($this->helper->getRawFileUrl($repo->getSlug(), 'master', 'composer.json'));
        file_put_contents($file, $content);

        return $file;
    }
public function getFile(Repo $repo)
    {
        $file = tempnam(sys_get_temp_dir(), 'composer');
        $content = file_get_contents($this->helper->getRawFileUrl($repo->getSlug(), 'master', 'composer.json'));
        file_put_contents($file, $content);

        return $file;
    }
public function getFile ( Repo $ repo ) { $ file = tempnam ( sys_get_temp_dir ( ) , 'composer' ) ; $ content = file_get_contents ( $ this -> helper -> getRawFileUrl ( $ repo -> getSlug ( ) , 'master' , 'composer.json' ) ) ; file_put_contents ( $ file , $ content ) ; return $ file ; }
Get composer file

@param \Snide\Bundle\TravinizerBundle\Model\Repo $repo
@return string
Get composer file