jsp / logging-entity-bundle
日志实体包 - 在实体中记录活动,包含用户和日期时间
0.1.15
2020-05-08 15:54 UTC
Requires
- php: ^7.2
- jsp/user-bundle: ^0.1.24
- jsp/utilities: 0.1.*
- sensio/framework-extra-bundle: ^5.5
- symfony/orm-pack: ^1.0
- symfony/security-bundle: ^4.4
This package is auto-updated.
Last update: 2024-09-09 01:58:35 UTC
README
(c) 2019 by John_Sear
Symfony Bundle
这是一个用于在 symfony 应用程序中记录实体活动的 symfony 包。
请确保您正在使用 symfony 版本 4.4。
此包仍在开发中。某些功能可能存在错误 ;-)
安装
通过 CLI
在 CLI 中运行 `composer require jsp/logging-entity-bundle:"0.1.*"`
命令来安装源代码,从版本 0.1.5 开始
composer.json
将以下内容添加到您的 symfony 应用程序 composer json 文件中
{
"require": {
"jsp/logging-entity-bundle": "0.1.*"
}
}
配置
注册所有服务
目前,所有服务都必须通过 services.yaml 自动绑定。
在 `config\services.yaml
的末尾添加以下行
services:
# ..
# add more service definitions when explicit configuration is needed
# please note that last definitions always *replace* previous ones
JohnSear\JspLoggingEntityBundle\:
resource: '../vendor/jsp/logging-entity-bundle/*'
# ..
配置 Doctrine 目标实体监听器
# config/packages/doctrine.yaml
doctrine:
# ...
orm:
# ...
resolve_target_entities:
Symfony\Component\Security\Core\User\UserInterface: JohnSear\JspLoggingEntityBundle\Logging\Base\LoggingEntityInterface