johnstyle/redmine-bundle

RedmineBundle

v1.0.1 2018-02-19 18:38 UTC

This package is auto-updated.

Last update: 2024-09-08 07:43:38 UTC


README

将Redmine客户端 https://github.com/kbsali/php-redmine-api 实现为Symfony服务。

配置

app/AppKernel.php 文件中启用该bundle

$bundles = [
    // existing bundles
    new Johnstyle\RedmineBundle\JohnstyleRedmineBundle(),
]

app/config/config.yml 中添加以下最小配置

johnstyle_redmine:
    url: '%redmine.url%'
    token: '%redmine.token%'

使用方法

$client = $this->container->get('johnstyle.redmine_client')->client();
$client->user->listing();

查看kbsali/php-redmine-api文档以获取更多示例。