Just add Git branch/repository informations into the Symfony profiler.
Simply run assuming you have installed composer :
$ php composer.phar require jdecool/git-profiler-bundle "^1.0"
Register the bundle in app/AppKernel.php
:
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(/* ... */);
if (in_array($this->getEnvironment(), array('dev', 'test'), true)) {
// ...
$bundles[] = new JDecool\Bundle\GitProfilerBundle\JDecoolGitProfilerBundle();
}
return $bundles;
}
Your git binary path is discovered using which git
where supported but you can specifically set the path via config :
j_decool_git_profiler:
git_binary_path: /usr/local/bin/git