Adds useful Git information to the Symfony2 debug toolbar.
[LeekGitDebugBundle]
git=git://github.com/leek/GitDebugBundle.git
target=bundles/Leek/GitDebugBundle
version=origin/2.0
php bin/vendors install
<?php
// ...
$loader->registerNamespaces(array(
// ...
'Leek' => __DIR__.'/../vendor/bundles',
<?php
// ...
if (in_array($this->getEnvironment(), array('dev', 'test'))) {
// ...
$bundles[] = new Leek\GitDebugBundle\LeekGitDebugBundle();
That's it! You should now see your current Git branch on the debug toolbar.
Note: A
composer.json
file is also provided if you prefer to use Composer. Therequire
key is: leek/git-debug-bundle