leek/git-debug-bundle
最新稳定版本:0.1.5
Composer 安装命令:
composer require leek/git-debug-bundle
包简介
Adds useful Git information to the Symfony2 Debug Toolbar
README 文档
README
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)
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.jsonfile is also provided if you prefer to use Composer. Therequirekey is: leek/git-debug-bundle
统计信息
- 总下载量: 17.53k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 23
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2012-01-31