terminal42/webling-bundle

我们的Webling API客户端的Symfony扩展包

资助包维护!
terminal42
其他

安装: 417

依赖者: 0

建议者: 0

安全性: 0

星级: 3

关注者: 4

分支: 0

开放问题: 0

类型:symfony-bundle

1.0.0 2016-12-06 15:23 UTC

This package is auto-updated.

Last update: 2024-08-29 03:58:05 UTC


README

这是一个为我们的webling.ch API客户端编写的Symfony扩展包。

此扩展包目前用于我们自己的项目,可能不支持所有情况。欢迎提出问题或拉取请求以进行提问或功能请求。

安装

$ composer.phar require terminal42/webling-bundle ^2.0@dev

配置

以下配置选项可用(通常添加到app/config/config.yml)。

terminal42_webling:
    subdomain:      ""   # Mandatory; Your Webling subdomain
    api_key:        ""   # Mandatory; Your API key
    api_version:    ~    # Optional; Defaults to the API version in EntityManager (v1)
    entity_factory: ~    # Optional; Replace default class to create custom entity instances

可用服务

该扩展包将为所有仓库以及更多服务提供支持(见services.xml)。以下是一些有用的服务:

  • terminal42_webling.entity_manager已预配置配置(见上文)。
  • terminal42_webling.repository.member用于查找和获取成员。
  • terminal42_webling.repository.membergroup用于查找和获取成员组。
  • terminal42_webling.repository.article用于查找和获取文章。
  • terminal42_webling.repository.articlegroup用于查找和获取文章组。
  • terminal42_webling.repository.document用于查找和获取文档。
  • terminal42_webling.repository.documentgroup用于查找和获取文档组。