jdecool / git-profiler-bundle
此包已被弃用且不再维护。未建议替代包。
将 Git 仓库信息添加到 Symfony 性能分析器
1.1.0
2017-07-09 10:54 UTC
Requires
- php: >=5.4.0
- cypresslab/gitelephant: ^1.1
- symfony/symfony: ~2.3|~3.0
This package is not auto-updated.
Last update: 2020-01-24 15:52:14 UTC
README
只需将 Git 分支/仓库信息添加到 Symfony 性能分析器。
安装
假设您已安装 composer,只需运行以下命令:
$ php composer.phar require jdecool/git-profiler-bundle "^1.0"
配置
在 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; }
您的 git 二进制文件路径将通过 which git
自动发现(在支持的情况下),但您也可以通过配置来指定该路径
j_decool_git_profiler: git_binary_path: /usr/local/bin/git