jdecool/git-profiler-bundle

此包已被弃用且不再维护。未建议替代包。

将 Git 仓库信息添加到 Symfony 性能分析器

安装: 20

依赖者: 0

建议者: 0

安全: 0

星标: 0

关注者: 1

分支: 1

开放问题: 0

语言:HTML

类型:symfony-bundle

1.1.0 2017-07-09 10:54 UTC

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