gupalo/changelog-bundle

变更日志包

安装: 0

依赖项: 0

建议者: 0

安全: 0

星标: 0

关注者: 2

分支: 0

公开问题: 0

类型:symfony-bundle

v2.0.2 2022-08-02 18:28 UTC

This package is auto-updated.

Last update: 2024-08-30 01:20:41 UTC


README

安装

composer require gupalo/changelog-bundle

将以下内容添加到 config/bundles.php

Gupalo\ChangeLogBundle\ChangeLogBundle::class => ['all' => true]

将以下内容添加到 config/packages/doctrine.yaml

mappings:
    ChangeLogBundle:
        type: attribute

将以下内容添加到 config/routes/annotations.yaml

changeLog:
    resource: '@ChangeLogBundle/Resources/config/routes.yaml'

执行

php bin/console doctrine:migrations:diff
php bin/console doctrine:migrations:migrate
php bin/console assets:install

为了保存实体的变更日志,实体必须实现 AwareChangeLogInterface 接口

基本路由 /change-log