libero/content-api-bundle

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

实现了Libero内容API

安装: 236

依赖者: 0

建议者: 0

安全: 0

星星: 0

关注者: 4

分支: 2

类型:symfony-bundle

v0.1.3 2019-05-02 12:14 UTC

This package is auto-updated.

Last update: 2020-08-31 00:45:27 UTC


README

Build Status

这是一个实现Libero内容API的Symfony包。

入门

使用Composer将包作为依赖项添加

composer require libero/content-api-bundle

如果您不使用Symfony Flex,您需要启用应用中的包。

配置您的应用以添加一个(或多个)内容API

services:
    Libero\ContentApiBundle\Adapter\NullItems: ~

content_api:
    services:
        research-articles:
            items: Libero\ContentApiBundle\Adapter\NullItems
        blog-articles:
            items: Libero\ContentApiBundle\Adapter\NullItems

并在路由文件中添加以下内容

content_api:
    resource: .
    type: content_api

此示例将创建两个内容API,前缀分别为research-articlesblog-articles

获取帮助