leek/git-debug-bundle

This package is abandoned and no longer maintained. No replacement package was suggested.

Adds useful Git information to the Symfony2 Debug Toolbar

Installs: 17 217

Dependents: 1

Suggesters: 0

Security: 0

Stars: 23

Watchers: 3

Forks: 6

Open Issues: 1

Type:symfony-bundle

0.1.5 2012-01-31 19:39 UTC

This package is not auto-updated.

Last update: 2022-02-01 12:20:07 UTC


README

Adds useful Git information to the Symfony2 debug toolbar.

Current branch in toolbar (Symfony 2.1)

Example Toolbar

Branch list in menu

Example Menu #1

Tag list in menu

Example Menu #2

Installation (Symfony 2.0.x only)

1. Add the following to your deps file:
    [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
3. Add the Leek namespace to app/autoload.php:
<?php
// ...
    $loader->registerNamespaces(array(
        // ...
        'Leek'                         => __DIR__.'/../vendor/bundles',
4. Setup the bundle to load only on your dev or test environment(s) in app/appKernel.php:
<?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. The require key is: leek/git-debug-bundle