jeffersonsimaogoncalves / cakephp-auditing
CakePHP的审计插件
1.1.4
2018-11-22 18:31 UTC
Requires
- ext-json: @stable
- cakephp/cakephp: ^3.6
README
此插件负责在数据库中执行持久化操作时收集变更。
安装
您可以使用composer进行安装。
composer require jeffersonsimaogoncalves/cakephp-auditing
启用插件
$ bin/cake plugin load JeffersonSimaoGoncalves/Auditing
配置行为
// src/Model/Table/ExampleTable.php class ExampleTable extends Table { /** * @param array $config * * @return void */ public function initialize(array $config) { parent::initialize($config); // Add the behaviour to your table $this->addBehavior('JeffersonSimaoGoncalves/Auditing.Logger'); } }