jedenweb / auditable
v3.0.1
2021-01-02 11:45 UTC
Requires
- php: >=7.3
- doctrine/orm: ^2.6
- nette/application: ^2.4.17|^3.0
- nette/di: ^2.4.17|^3.0
- ramsey/uuid-doctrine: ^1.4
Requires (Dev)
- mockery/mockery: ^1.4
- nette/tester: ^2.3.4
- phpstan/phpstan: ^0.12
- phpstan/phpstan-doctrine: ^0.12
- phpstan/phpstan-nette: ^0.12
README
Installation
$ composer require jedenweb/auditable
Register Nette extension:
extensions: - JedenWeb\AuditableModule\DI\AuditableExtension
Register UUID type, metadata mapping and target-entity mapping:
# example for kdyby/doctrine doctrine: types: uuid: Ramsey\Uuid\Doctrine\UuidType metadata: JedenWeb\AuditableModule: %appDir%/../vendor/jedenweb/auditable/src/Model targetEntityMappings: JedenWeb\AuditableModule\Model\IAuthor: My\AuthorImplementation # implement yourself