enm/json-api-object-resource-mapper-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

enm/json-api-object-resource-mapper-bundle

Composer 安装命令:

composer require enm/json-api-object-resource-mapper-bundle

包简介

Symfony integration for object resource mappers from enm/json-api-common

README 文档

README

Symfony integration for object and resource mappers from enm/json-api-server-common

  1. Installation
  2. Usage

Installation

composer require enm/json-api-server-common

in your AppKernel:

<?php
// config/bundles.php
return [
    // ...
    Enm\Bundle\JsonApi\Mapper\EnmJsonApiMapperBundle::class => ['all'=>true],
    // ...
];

Usage

Your object mappers must be defined as services and tagged with json_api.object_mapper to be detected by this bundle.

Your resource mappers must be defined as services and tagged with json_api.resource_mapper to be detected by this bundle.

services:
    app.mappers.example:
        class: App\Mappers\ExampleMapper # this mapper will implement object and resource mapper interface...
        tags:
            - { name: 'json_api.object_mapper' }
            - { name: 'json_api.resource_mapper' }

The registry service, which you will need for dependency injection, is Enm\JsonApi\Mapper\ObjectResourceMapper.

统计信息

  • 总下载量: 13
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 4
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-10-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固