avoo/serializer-translation-bundle

JMS Serializer 的翻译包

0.1.2 2015-06-02 09:47 UTC

This package is not auto-updated.

Last update: 2024-09-14 15:48:28 UTC


README

![Scrutinizer Code Quality] (https://scrutinizer-ci.com/g/avoo/SerializerTranslationBundle/badges/quality-score.png?b=master) ![Build Status] (https://scrutinizer-ci.com/g/avoo/SerializerTranslationBundle/badges/build.png?b=master) ![Latest Stable Version] (https://poser.pugx.org/avoo/serializer-translation-bundle/v/stable.svg) Total Downloads ![License] (https://poser.pugx.org/avoo/serializer-translation-bundle/license.svg)

此包集成了 SerializerTranslation

安装

在您的 composer.json 文件中包含 avoo/serializer-translation-bundle

{
    "require": {
        "avoo/serializer-translation-bundle": "@dev-master"
    }
}

app/AppKernel.php 中注册该包

// app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        new Avoo\SerializerTranslationBundle\AvooSerializerTranslationBundle(),
    );
}

文档

此包集成了 SerializerTranslation,用于从 JMS serializer 翻译属性,更多详细信息请参阅 Serializer translation documentation

致谢

许可证

此包在 MIT 许可证下发布。请参阅包中的完整许可证

许可证