msgphp/eav-bundle

此包已被废弃,不再维护。未建议替代包。

基本实体-属性-值管理(`EAV` 领域)

维护者

详细信息

github.com/msgphp/eav-bundle

源代码

安装次数: 19,712

依赖者: 1

建议者: 0

安全: 0

星星: 0

关注者: 0

分支: 0

类型:symfony-bundle

v0.15.1 2020-03-08 13:52 UTC

README

msgphp/* 仓库不再积极开发/支持。

在生产环境中使用存在风险。

如果您想进行一些热修复 - 请直接在目标仓库中提交PR,而不是之前的msgphp/msgphp monorepository

实体-属性-值包

用于基本 EAV 管理的 Symfony 包。

Latest Stable Version

安装

composer require msgphp/eav-bundle

配置

<?php
// config/packages/msgphp_eav.php

use MsgPhp\Eav\Attribute;
use MsgPhp\Eav\AttributeValue;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;

return function (ContainerConfigurator $container) {
    $container->extension('msgphp_eav', [
        'class_mapping' => [
            Attribute::class => \App\Entity\Attribute::class,
            AttributeValue::class => \App\Entity\AttributeValue::class,
        ],
    ]);
};

文档

贡献