LeekGitDebugBundle
Adds useful Git information to the Symfony2 debug toolbar.
Current branch in toolbar (Symfony 2.1)
Branch list in menu
Tag list in menu
Installation (Symfony 2.0.x only)
deps
file:
1. Add the following to your [LeekGitDebugBundle]
git=git://github.com/leek/GitDebugBundle.git
target=bundles/Leek/GitDebugBundle
version=origin/2.0
2. Run the vendors install script:
php bin/vendors install
Leek
namespace to app/autoload.php
:
3. Add the <?php
// ...
$loader->registerNamespaces(array(
// ...
'Leek' => __DIR__.'/../vendor/bundles',
dev
or test
environment(s) in app/appKernel.php
:
4. Setup the bundle to load only on your <?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